what happended: I'm trying to use kubeedge-counter-demo to test device control ,however when I follow the guideline in the webpage to create the counter device the status of its pod remain ContainerCreating
NAME READY STATUS RESTARTS AGE
kubeedge-counter-app-6984dcb4dd-4jdk6 1/1 Running 0 47m
kubeedge-pi-counter-784d57c5d4-d7tw7 0/1 ContainerCreating 0 47m
[root@cloud-master1 crds]# kubectl get pod kubeedge-pi-counter-784d57c5d4-d7tw7 -oyaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2021-11-03T02:22:58Z"
generateName: kubeedge-pi-counter-784d57c5d4-
labels:
k8s-app: kubeedge-pi-counter
pod-template-hash: 784d57c5d4
managedFields:
[root@cloud-master1 crds]# kubectl describe pod kubeedge-pi-counter-784d57c5d4-d7tw7
Name: kubeedge-pi-counter-784d57c5d4-d7tw7
Namespace: default
Priority: 0
Node: edge-mini-1/192.168.1.40
Start Time: Wed, 03 Nov 2021 10:24:31 +0800
Labels: k8s-app=kubeedge-pi-counter
pod-template-hash=784d57c5d4
Annotations:
Status: Pending
IP: 192.168.1.40
IPs:
IP: 192.168.1.40
Controlled By: ReplicaSet/kubeedge-pi-counter-784d57c5d4
Containers:
kubeedge-pi-counter:
Container ID:
Image: kubeedge/kubeedge-pi-counter:v1.0.0
Image ID:
Port:
Host Port:
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-6wchc (ro)
Conditions:
Type Status
Initialized True
Ready False
PodScheduled True
Volumes:
default-token-6wchc:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-6wchc
Optional: false
QoS Class: BestEffort
Node-Selectors: node-role.kubernetes.io/edge=
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
Warning FailedScheduling default-scheduler 0/5 nodes are available: 1 node(s) didn't match node selector, 4 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate.
Warning FailedScheduling default-scheduler 0/5 nodes are available: 1 node(s) didn't match node selector, 4 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate.
Normal Scheduled default-scheduler Successfully assigned default/kubeedge-pi-counter-784d57c5d4-d7tw7 to edge-mini-1
NAME READY STATUS RESTARTS AGE kubeedge-counter-app-6984dcb4dd-4jdk6 1/1 Running 0 47m kubeedge-pi-counter-784d57c5d4-d7tw7 0/1 ContainerCreating 0 47m
[root@cloud-master1 crds]# kubectl get pod kubeedge-pi-counter-784d57c5d4-d7tw7 -oyaml apiVersion: v1 kind: Pod metadata: creationTimestamp: "2021-11-03T02:22:58Z" generateName: kubeedge-pi-counter-784d57c5d4- labels: k8s-app: kubeedge-pi-counter pod-template-hash: 784d57c5d4 managedFields:
[root@cloud-master1 crds]# kubectl describe pod kubeedge-pi-counter-784d57c5d4-d7tw7 Name: kubeedge-pi-counter-784d57c5d4-d7tw7 Namespace: default Priority: 0 Node: edge-mini-1/192.168.1.40 Start Time: Wed, 03 Nov 2021 10:24:31 +0800 Labels: k8s-app=kubeedge-pi-counter pod-template-hash=784d57c5d4 Annotations:
Status: Pending
IP: 192.168.1.40
IPs:
IP: 192.168.1.40
Controlled By: ReplicaSet/kubeedge-pi-counter-784d57c5d4
Containers:
kubeedge-pi-counter:
Container ID:
Host Port:
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-6wchc (ro)
Conditions:
Type Status
Initialized True
Ready False
PodScheduled True
Volumes:
default-token-6wchc:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-6wchc
Optional: false
QoS Class: BestEffort
Node-Selectors: node-role.kubernetes.io/edge=
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
Image: kubeedge/kubeedge-pi-counter:v1.0.0 Image ID:
Port:
Warning FailedScheduling default-scheduler 0/5 nodes are available: 1 node(s) didn't match node selector, 4 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate.
Warning FailedScheduling default-scheduler 0/5 nodes are available: 1 node(s) didn't match node selector, 4 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate.
Normal Scheduled default-scheduler Successfully assigned default/kubeedge-pi-counter-784d57c5d4-d7tw7 to edge-mini-1