Coder Social home page Coder Social logo

Comments (7)

yorinasub17 avatar yorinasub17 commented on July 22, 2024 3

I came across this as well, and noticed that the ingress controller ignores any ingress rules that don't have a specific hostname attached to it. It worked once I specified a host to the ingress rule.

from kubernetes-ingress-controller.

angapov avatar angapov commented on July 22, 2024

Same behavior with same manifests on minikube.

from kubernetes-ingress-controller.

angapov avatar angapov commented on July 22, 2024

It seems that ingress-controller is not doing anything. I see no POST requests in admin-api and database tables are also empty.

from kubernetes-ingress-controller.

devdavidkarlsson avatar devdavidkarlsson commented on July 22, 2024

kubernetes.io/ingress.class: "kong"

should be

kubernetes.io/ingress.class: "nginx"

export KONG_ADMIN_PORT=$(minikube service -n kong kong-ingress-controller --url --format "{{ .Port }}")
export KONG_ADMIN_IP=$(minikube service   -n kong kong-ingress-controller --url --format "{{ .IP }}")
export PROXY_IP=$(minikube   service -n kong kong-proxy --url --format "{{ .IP }}" | head -1)
export HTTP_PORT=$(minikube  service -n kong kong-proxy --url --format "{{ .Port }}" | head -1)
export HTTPS_PORT=$(minikube service -n kong kong-proxy --url --format "{{ .Port }}" | tail -1)
curl ${KONG_ADMIN_IP}:${KONG_ADMIN_PORT}/routes |jq .
curl ${KONG_ADMIN_IP}:${KONG_ADMIN_PORT}/services |jq .

from kubernetes-ingress-controller.

angapov avatar angapov commented on July 22, 2024

But I specified --ingress-class=kong in ingress-controller args...

from kubernetes-ingress-controller.

devdavidkarlsson avatar devdavidkarlsson commented on July 22, 2024

Hmm, ok. What do you get on the endpoints listed above?

And the upstreams one:

curl ${KONG_ADMIN_IP}:${KONG_ADMIN_PORT}/upstreams |jq .

from kubernetes-ingress-controller.

angapov avatar angapov commented on July 22, 2024

@yorinasub17 you are right. Configuring hosts did the trick. Thank you!

from kubernetes-ingress-controller.

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.