How to see kong logs of kong-ingress-controller

Hi,

I deployed kong-ingress-controller and trying to run the getting started guide on an AWS EKS cluster. I got this error when trying to access the $PROXY_IP/foo address:

HTTP/1.1 502 Bad Gateway
Date: Mon, 30 Sep 2019 09:19:21 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: kong/1.3.0
X-Kong-Upstream-Latency: 2
X-Kong-Proxy-Latency: 7
Via: kong/1.3.0

An invalid response was received from the upstream server

I would want to check the kong logs to see what happens but couldn’t access the ingress controller’s shell. The only logs that I can get are via kubectl logs ingress-kong-pod-name ingress-controller -n kong which has no useful information.

If you know a way to troubleshoot this, please let me know.

Many thanks,

Okie, I now can see the logs of kong by going into the kong ingress containers:

kubectl exec -it ingress-kong-xxx -n kong – /bin/ash

$ kubectl get pods  | grep ingress
ingress-kong-845cfb4996-xnzg7   2/2     Running   1          62m
  1. To see logs of proxy (kong instance itself)

    $ kubectl logs -f --tail=10 ingress-kong-845cfb4996-xnzg7 proxy

  2. To see logs of ingress controller

    $ kubectl logs -f --tail=10 ingress-kong-845cfb4996-xnzg7 ingress-controller

1 Like

Thanks for the suggestion.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ