Run the following command:
Kubectl Run Nginx2--image=nginx--replicas=2
Check the pod status as follows:
Kubectl Get all
View pod description information as follows:
Kubectl describe pod NGINX2-6DBF4CD9BC-MBTVH
View Log on to 172.16.91.211 node, view Kubelet logs
Journalctl-u kubelet-f
The error content is as follows:
May 05:43:30 Node2 kubelet[1605]: E0517 05:43:30.259329 1605 pod_workers.go:186] Error syncing pod ee01867e-59a0-11e 8-b784-000c29d0d632 ("Nginx-8586cf59-cvzbk_default (ee01867e-59a0-11e8-b784-000c29d0d632)"), skipping:failed to " Createpodsandbox "for" Nginx-8586cf59-cvzbk_default (ee01867e-59a0-11e8-b784-000c29d0d632) "with Createpodsandboxerror: "Createpodsandbox for pod \" Nginx-8586cf59-cvzbk_default ( ee01867e-59a0-11e8-b784-000c29d0d632) \ "Failed:rpc Error:code = Unknown desc = Failed to start sandbox container for pod \ "Nginx-8586cf59-cvzbk\": Error response from Daemon:shim Error:docker-runc not installed on system"
Resolution:
There's a problem installing Docker,
Log on to the 172.16.91.211 node,
Ln-s/usr/libexec/docker/docker-runc-current/usr/bin/docker-runc
Creating the pod times failed create pod sandbox