I am using Kong for K8s with ingress - DB less.
I am getting “no Route matched with those values” error. Below is my configuration details.
$export PROXY_IP=$(kubectl get -o jsonpath="{.spec.clusterIP}" service -n kong kong-proxy)
Above command results to one ip say IP-1
$echo $PROXY_IP
This results to same IP mentioned in above command say IP-1
Few more details for you …
$kubectl get all
NAME READY STATUS RESTARTS AGE
pod/echo-5fc5b5bc84-rbzb7 1/1 Running 0 38h
pod/test-7fb77f8c57-znxj4 1/1 Running 0 4m23s
pod/test-7fb77f8c57-7flz8 1/1 Running 0 4m18s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP IP-A 443/TCP 75d
service/echo ClusterIP IP-B 8080/TCP,80/TCP 38h
service/test ClusterIP IP-C 8080/TCP,80/TCP 5m37s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/echo 1/1 1 1 38h
deployment.apps/test 2/2 2 2 5m37s
NAME DESIRED CURRENT READY AGE
replicaset.apps/echo-5fc5b5bc84 1 1 1 38h
replicaset.apps/test-7fb77f8c57 2 2 2 4m23s
When I run below command, it gives me no route error as mentioned below
$curl -i -H “Host: example.com” $PROXY_IP/test
HTTP/1.1 404 Not Found
Date: Wed, 03 Nov 2021 06:32:12 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Content-Length: 48
X-Kong-Response-Latency: 2
Server: kong/2.5.1
{“message”:“no Route matched with those values”}
But when I run echo service, it works fine. there are same kind of configurations in both echo and test api.
Here is my ingress configuration for you …
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test
annotations:
Kong Hub | Plugins and Integrations | Kong Docs request-id
spec:
ingressClassName: kong
rules:
- host: example.com
- http:
paths:- path: /test
pathType: ImplementationSpecific
backend:
service:
name: test
port:
number: 80
- path: /test
Any help will be highly appreciated.