Trying to setup ingress resulting in back-off-restarting with 'error retrieving k8s version' #2664
Replies: 2 comments 1 reply
-
It looks like you have missed the IngressClass. As well as the CRDs: |
Beta Was this translation helpful? Give feedback.
-
Hi @typoworx-de It looks like the Ingress Controller is not able to communicate with the API server. Could you double-check that networking, DNS, etc in the cluster are all working correctly? Kubernetes docs have a few troubleshooting guides, one that I find particularly useful is this one https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution that shows how to create a test pod and also explains how to check that the DNS is working correctly. |
Beta Was this translation helpful? Give feedback.
-
checked out this git-repo and tried to deploy on fresh-setup kubernetes (bare-metal, 2 workers) with flannel-cni.
I used these commands to setup:
kubectl apply -f common/ns-and-sa.yaml
kubectl apply -f common/default-server-secret.yaml
kubectl apply -f common/nginx-config.yaml
kubectl apply -f rbac/rbac.yaml
kubectl apply -f deployment/nginx-ingress.yaml
kubectl apply -f service/loadbalancer.yaml
After some time everything started up, except "nginx-ingress":
State is 'waiting'
Last Status: 'Terminate' with Reason 'exit-code 255'
Back-off restarting failed container
Terminal Log:
Well okay I'm new to kubernetes may be there's something I didn't do right? Any help welcome.
Beta Was this translation helpful? Give feedback.
All reactions