kubectl
kubectl
command isn't foundchmod g-r ~/.kube/config
chmod o-r ~/.kube/config
CrashLoopBackOff
kubectl logs <podname>
-p
flag for its logs too.kubectl describe pod <podname>
containers: CONTAINER_NAME: last state: exit code
fieldCrashLoopBackOff
status0
or 1
Exit Code: 137
for the container means Out of Memory exception.CrashLoopBackOff
statusrunning
statekubectl exec -it <podname> -- /bin/bash
-c <container_name>
for a specific container.ImagePullBackOff
and ErrImagePull
:latest
or no tag pulls the latest image. And old tags may not be available)ssh [email protected]
should work both in powershell or bashdocker pull <image name>
.
For example, docker pull docker.io/nfvpe/sriov-device-plugin:latest
.spec: containers: resources: requests
spec can be updated as per the requirement.kube-system
also use the cluster resourcesMatchNodeSelector
means that there are no nodes that match the Pod's label selector.nodeSelector
fieldPodToleratesNodeTaints
says that the Pod can't be scheduled to any node because no node currently tolerates its node taint.kubectl patch node 10.ab.cd.efg -p '{"spec":{"unschedulable":false}}'
kubectl patch node 10.20.30.123 -p '{"spec":{"unschedulable":false}}'
kubectl taint nodes <node_name> key:NoSchedule-
SchedulingDisabled
or Cordoned
status.kubectl get nodes
uncordon
ing the nodekubectl uncordon <node_name>
bound
state.