Troubleshooting your ingress controllers
These are some useful commands that you can use to troubleshoot your ingress controllers:
- To check the NGINX ingress controller logs, run the following command:
$ kubectl logs -f deploy/nginx-ingress-ingress-nginx-controller -n nginx-ingress
This will show the logs when an ingress uses NGINX as the ingress controller.
- To check Traefik ingress controller logs, run the following command:
$ kubectl logs -f deploy/traefik -n kube-system
- To check Contour ingress controller logs, run the following command:
$ kubectl logs -f deploy/contour -n projectcontour
These commands are useful for checking what is happening inside your ingress controller deployments. Now, here are some useful commands to check that your ingress definition is working properly:
$ kubectl get svc $ kubectl get ingresses
If you want to use the ingress controller’s own objects, such as HTTPProxy
and so on, run the following command: