[root@cloud ~]# kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-c85df76f4-gj65j 1/1 Running 0 7d23h temperature-simulate-mapper-588ff95b6d-l7d4l 0/1 ContainerCreating 0 13h [root@cloud ~]# kubectl get describe temperature-simulate-mapper-588ff95b6d-l7d4l error: the server doesn't have a resource type "describe" [root@cloud ~]# kubectl describe pod temperature-simulate-mapper-588ff95b6d-l7d4l Name: temperature-simulate-mapper-588ff95b6d-l7d4l Namespace: default Priority: 0 Node: edge-vm/12.0.0.122 Start Time: Tue, 08 Jun 2021 20:00:32 +0800 Labels: app=temperature pod-template-hash=588ff95b6d Annotations: <none> Status: Pending IP: 12.0.0.122 IPs: IP: 12.0.0.122 Controlled By: ReplicaSet/temperature-simulate-mapper-588ff95b6d Containers: temperature: Container ID: Image: temperature-simulate-mapper:test-0629 Image ID: Port: <none> Host Port: <none> State: Waiting Reason: ContainerCreating Ready: False Restart Count: 0 Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-vnkkz (ro) Conditions: Type Status Initialized True Ready False PodScheduled True Volumes: default-token-vnkkz: Type: Secret (a volume populated by a Secret) SecretName: default-token-vnkkz Optional: false QoS Class: BestEffort Node-Selectors: edge/role=temperature Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s Events: <none> [root@cloud ~]# kubectl get events --all-namespaces NAMESPACE LAST SEEN TYPE REASON OBJECT MESSAGE kube-system 2m4s Warning BackOff pod/coredns-66bff467f8-r9wtb Back-off restarting failed container kube-system 17m Normal Pulled pod/coredns-66bff467f8-szhv9 Container image "k8s.gcr.io/coredns:1.6.7" already present on machine kube-system 2m16s Warning BackOff pod/coredns-66bff467f8-szhv9 Back-off restarting failed container [root@cloud ~]
镜像不存在
root@edge-vm01:~# docker images | grep temperature-simulate-mappe root@edge-vm01:~#
root@edge-vm01:~# docker images | grep temperature-simulate-mappe root@edge-vm01:~# docker tag d807edfc256f temperature-simulate-mapper:test-0629 root@edge-vm01:~# docker images | grep temperature-simulate-mappe temperature-simulate-mapper test-0629 d807edfc256f 3 weeks ago 440MB root@edge-vm01:~# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest ab2a5aa39300 2 weeks ago 126MB nginx <none> 5aa5901ac9c7 3 weeks ago 126MB kubeedge-temperature-mapper test-0629 d807edfc256f 3 weeks ago 440MB temperature-simulate-mapper test-0629 d807edfc256f 3 weeks ago 440MB quay.io/coreos/flannel v0.12.0-arm64 7cf4a417daaa 15 months ago 53.6MB kubeedge/pause-arm64 3.1 6cf7c80fe444 3 years ago 525kB