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.
It might have been created in another namespace than you expected. Try again with
- 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
- If 1 works in a few minutes, the problem might be in your own manifest file.
- If no ADDRESS is assigned for 2048 either, try
kubectl logs -n kube-system deployment.apps/aws-load-balancer-controller
- 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)