DEV Community

langyizhao
langyizhao

Posted on

1 1

Troubleshooting K8s Ingress Issues

Most K8s resource creation failures are easy to debug, usually you can figure them out with either kubectl get or kubectl describe command on the failed resource.

However Ingress resources are often cluster-provider-specific, more often than not the errors are not explicit.

EKS Ingress Troubleshooting

kubectl get ingress doesn't show the ingress you just created

It might have been created in another namespace than you expected. Try again with --all-namespaces flag.

kubectl get ingress shows no ADDRESS after several minutes of resource creation

  1. Try the AWS official example:
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.2.0/docs/examples/2048/2048_full.yaml
kubectl get ingress/ingress-2048 -n game-2048 --watch
Enter fullscreen mode Exit fullscreen mode
  1. If 1 works in a few minutes, the problem might be in your own manifest file.
  2. If no ADDRESS is assigned for 2048 either, try kubectl logs -n kube-system deployment.apps/aws-load-balancer-controller
  3. If the error message is Error from server (NotFound): deployments.apps "aws-load-balancer-controller" not found, follow https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html to deploy the controller.

(Will add more contents for other providers later)

References:

  1. https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →