Error "no Route matched with those values" with the Kong ingress controller Error "no Route matched with those values" with the Kong ingress controller kubernetes kubernetes

Error "no Route matched with those values" with the Kong ingress controller


Your rjup2 Service doesn't have a valid selector. Note that the Pods you are trying to expose are labelled with run: rjup2 label and your Service has app: rjup2 selector.

Btw. you get very clear error message that indicates where the problem could be:

service kong/rjup2 does not have any active endpoints

If your rjup2 service in kong namespace doesn't have any active endpoints, it means it doesn't expose your Pods properly which may indicate a possible mismatch in your configuration.

You can check it by running:

kubectl get ep -n kong

Normally you should see the matching Endpoints object. In your case you won't see it as your Service cannot expose any pods untill it has a valid selector.

If you fix your Service definition, everything should work just fine:

apiVersion: v1kind: Servicemetadata:    name: rjup2  namespace: kongspec:  selector:        run: rjup2  type: ClusterIP  ports:    - name: http    port: 80    targetPort: 8888    protocol: TCP