Frequently Asked Questions About MicroK8s
The following FAQs are not exhaustive, but they are important for running your Kubernetes cluster:
- How do I find out what the status of a deployment is?
Use the kubectl get deployment <deployment>
command. If DESIRED
, CURRENT
, and UP-TO-DATE
are all equal, then the deployment has succeeded.
- How do I troubleshoot a pod with a
Pending
status?
A pod with the Pending status cannot be scheduled onto a node. Inspecting the pod using kubectl describe pod <pod>
will give you details on why the pod is stuck. Additionally, you can use the kubectl logs <pod>
command to understand if there is contention.
The most common reason for this issue is some pod requesting more resources.
- How do I troubleshoot a
ContainerCreating
pod?
Unlike a Pending
pod, a ContainerCreating pod is scheduled onto the node but due to some other reason, it cannot start up properly. Using kubectl describe pod <...