I'm in the Level Up In Tech cloud program and I'm working on a Kubernetes projectSo I'm working to create a deployment and it's stuck in a pending state with no events as to why it's in a pending state.
I'm in the Level Up In Tech cloud program and I'm working on a Kubernetes projectSo I'm working to create a deployment and it's stuck in a pending state with no events as to why it's in a pending state.
kubectl describe pod pod-nameSo I'm working to create a deployment and it's stuck in a pending state with no events as to why it's in a pending state.
When I do that it doesn't show the eventskubectl describe pod pod-name
You should get a listing of events at the bottom of the output that should clue you in.
Ok that suggests to me that there's a dependency that isn't available. Is there a service or something that the pod is depending on? Or maybe the Kubernetes cluster doesn't have enough resources for your deployment?When I do that it doesn't show the events
Ok that suggests to me that there's a dependency that isn't available. Is there a service or something that the pod is depending on? Or maybe the Kubernetes cluster doesn't have enough resources for your deployment?
cluster is set to be cordoned which means no nodes can be scheduled. run kubectl get nodes and see if the status says it cannot be scheduled.How would I go about checking the resources??
I'd doHow would I go about checking the resources??
I'd do
kubectl get pvc
kubectl get services
kubectl get volumes
If your yaml is referencing something in there and it doesn't exist, it'll stay in pending. You can try doing a trivial deployment - something that doesn't have any extra configuration, just gets a pod and a container out there. Can you post the yaml you're using?
Ok that's new to me. I've always created resources from YAML. I thought maybe it's a namespace and permissions issue, but the cluster should have blocked you from even getting anything out there. This could be a node issue like NoName was getting at.I didn't create a yaml file i just ran a kubectl create deployment <my deployment name> --image=nginx command and that's when i get my pending status when I check my pod
Could I send you an article on the project??Ok that's new to me. I've always created resources from YAML. I thought maybe it's a namespace and permissions issue, but the cluster should have blocked you from even getting anything out there. This could be a node issue like NoName was getting at.
Yeah, I'm having a tough time wrapping my head around what might be going wrong.Could I send you an article on the project??
Yeah, I'm having a tough time wrapping my head around what might be going wrong.
Sorry breh, I can't think of why. Maybe a Docker desktop + Kubernetes issue?Deploying Containers with Kubernetes!
Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications…levelup.gitconnected.com
I actually used K3's I tried to go the Docker desktop route and that didn't work at all.Sorry breh, I can't think of why. Maybe a Docker desktop + Kubernetes issue?