Giter Club home page Giter Club logo

Comments (1)

whitelancer avatar whitelancer commented on June 9, 2024

After all of that, and days of working on this, I finally added a port 80 to the end of the Mapping, and it started working. I even remember reading that warning, here: https://www.getambassador.io/docs/emissary/latest/howtos/istio#configure-mappings-to-use-mtls and https://www.getambassador.io/docs/emissary/latest/howtos/istio#configure-service-ports.

What's bothering me is that during initial development, I did use the port 80 syntax and I also used 80/443 on the service, and was running into some issues. I wish I had documented better. For anyone coming in the future, just beware of that if you see a timeout issue.

Two fixes:

---
apiVersion: getambassador.io/v3alpha1
kind:  Mapping
metadata:
  name:  catch-all
  namespace: ambassador
spec:
  prefix: /
  hostname: "*"
  service: default-http-backend-svc:80
  tls: istio-upstream

or

---
apiVersion: v1
kind: Service
metadata:
  namespace: ambassador
  name: default-http-backend-svc
  labels:
    app.kubernetes.io/name: default-http-backend-svc
    app.kubernetes.io/version: "1.0"
spec:
  selector:
    app.kubernetes.io/name: default-http-backend
    app.kubernetes.io/version: "1.0"
  ports:
    - appProtocol: tcp
      name: tcp-80
      port: 80
      targetPort: 8080
    - appProtocol: tcp
      name: tcp-443
      port: 443
      targetPort: 8080

from emissary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.