-
Notifications
You must be signed in to change notification settings - Fork 55
Deployment stuck - Pod in CrashLoopBackOff #47
Comments
Can you do |
Sure thing! What I am seeing in there is that the readiness / liveliness URLs have no hostname. On the other hand in the events there is an IP address mentioned. Not sure what to make of that.
|
This is expected. In kubernetes, you can configure liveness/readiness probes with just the port of the container. The output you are seeing is when you only specify the port (which is how it is configured in the module). In this case, the
This indicates that the
What environment are you deploying this in? What flavor of kubernetes (EKS, GKE, AKS, OpenShift, etc)? I noticed you are using calico for CNI: do you have network security policies configured? |
I am deploying on a bare-metal installation built with the terraform code from https://github.com/fogs/terraform-k8s-hcloud on the Hetzner Cloud. So far I have only tested fireing up a nginx deployment. Private networks and calico have just been added as feature. I have never configured any network security policies. So this sounds like the main culprit is my environment and not your module. Is there any way how I can test network connectivity on my cluster as it is required for this module to work? |
I am not aware of a good way to test this, but you can try deploying the following manifest and see if it works:
This will deploy an nginx deployment with a liveness and readiness probe. The goal of this test is to see if it is a network issue or there is an issue with the pod. |
During
terraform apply
my deployment process gets stuck and terminated after 10 minutes .This is the last action being executed:
It looks like the tiller pod is not coming up but I also don't see any logs from that:
My helm/tiller deployment is embedded as a module and configured as follows:
Thanks for reading this!
The text was updated successfully, but these errors were encountered: