Sameer Jain:
202. Practice Test - Deploy Network Solution after run kubectl apply -f "<https://cloud.weave.works/k8s/net?k8s-version=$(kubectl> version | base64 | tr -d '\n')"
weave-net pods goes into CrashLoopBackOff
kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
default app 0/1 ContainerCreating 0 5m57s
kube-system coredns-74ff55c5b-8hc98 1/1 Running 0 28m
kube-system coredns-74ff55c5b-qspks 1/1 Running 0 28m
kube-system etcd-controlplane 1/1 Running 0 29m
kube-system kube-apiserver-controlplane 1/1 Running 0 29m
kube-system kube-controller-manager-controlplane 1/1 Running 0 29m
kube-system kube-proxy-xfr86 1/1 Running 0 29m
kube-system kube-scheduler-controlplane 1/1 Running 0 29m
kube-system weave-net-7wjjb 1/2 CrashLoopBackOff 5 5m5s
here is event from weave-net-7wjjb
pod
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 6m52s default-scheduler Successfully assigned kube-system/weave-net-7wjjb to controlplane
Normal Pulled 6m50s kubelet Container image "<http://docker.io/weaveworks/weave-kube:2.8.1|docker.io/weaveworks/weave-kube:2.8.1>" already present on machine
Normal Created 6m49s kubelet Created container weave-init
Normal Started 6m49s kubelet Started container weave-init
Normal Pulled 6m45s kubelet Container image "<http://docker.io/weaveworks/weave-npc:2.8.1|docker.io/weaveworks/weave-npc:2.8.1>" already present on machine
Normal Created 6m44s kubelet Created container weave-npc
Normal Started 6m44s kubelet Started container weave-npc
Normal Pulled 5m53s (x4 over 6m46s) kubelet Container image "<http://docker.io/weaveworks/weave-kube:2.8.1|docker.io/weaveworks/weave-kube:2.8.1>" already present on machine
Normal Created 5m52s (x4 over 6m46s) kubelet Created container weave
Normal Started 5m51s (x4 over 6m45s) kubelet Started container weave
Warning BackOff 108s (x25 over 6m39s) kubelet Back-off restarting failed container