#kubectl describe pod nfs-client-provisioner-5b5fb4577-ctmbc
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreatePodSandBox 15m kubelet, k8s-node Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "463b016a6415a46212a720c53cb9fb3433e7b97c778f4d6a397064f3ef570ff4" network for pod "nfs-client-provisioner-5b5fb4577-ctmbc": networkPlugin cni failed to set up pod "nfs-client-provisioner-5b5fb4577-ctmbc_default" network: open /run/flannel/subnet.env: no such file or directory
Warning FailedCreatePodSandBox 15m kubelet, k8s-node Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "a38312b058626aaf49f31cbe346e1bd6d0e8d1b79c19ad63b42d690834b981de" network for pod "nfs-client-provisioner-5b5fb4577-ctmbc": networkPlugin cni failed to set up pod "nfs-client-provisioner-5b5fb4577-ctmbc_default" network: open /run/flannel/subnet.env: no such file or directory
Warning FailedCreatePodSandBox 15m kubelet, k8s-node Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "9b639933ef595d5a582af5fdfb846a7be6a489fa2d557ed3281fd0d23dd6c5ad" network for pod "nfs-client-provisioner-5b5fb4577-ctmbc": networkPlugin cni failed to set up pod "nfs-client-provisioner-5b5fb4577-ctmbc_default" network: open /run/flannel/subnet.env: no such file or directory
Warning FailedCreatePodSandBox 15m kubelet, k8s-node Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "cdd13ec46b60f19ee92b136a382b0a3045974e70ed308012fd246109c3ff62ab" network for pod "nfs-client-provisioner-5b5fb4577-ctmbc": networkPlugin cni failed to set up pod "nfs-client-provisioner-5b5fb4577-ctmbc_default" network: open /run/flannel/subnet.env: no such file or directory
Normal SandboxChanged 14m (x5 over 15m) kubelet, k8s-node Pod sandbox changed, it will be killed and re-created.
Normal Pulling 14m kubelet, k8s-node Pulling image "quay.io/external_storage/nfs-client-provisioner:latest"
Normal Pulled 14m kubelet, k8s-node Successfully pulled image "quay.io/external_storage/nfs-client-provisioner:latest"
Normal Created 14m kubelet, k8s-node Created container nfs-client-provisioner
Normal Started 14m kubelet, k8s-node Started container nfs-client-provisioner
root@k8s-master:/opt/nfsyaml#
#kubectl logs nfs-client-provisioner-5b5fb4577-ctmbc
I0617 08:23:28.904270 1 leaderelection.go:185] attempting to acquire leader lease default/fuseim.pri-ifs...
I0617 08:23:46.787313 1 leaderelection.go:194] successfully acquired lease default/fuseim.pri-ifs
I0617 08:23:46.788710 1 controller.go:631] Starting provisioner controller fuseim.pri/ifs_nfs-client-provisioner-5b5fb4577-ctmbc_4b5d5b32-cf45-11eb-a0a3-6a39c3fbeec4!
I0617 08:23:46.813521 1 event.go:221] Event(v1.ObjectReference{Kind:"Endpoints", Namespace:"default", Name:"fuseim.pri-ifs", UID:"8e0c73de-fef6-4e08-94c7-8a8711975253", APIVersion:"v1", ResourceVersion:"6524964", FieldPath:""}): type: 'Normal' reason: 'LeaderElection' nfs-client-provisioner-5b5fb4577-ctmbc_4b5d5b32-cf45-11eb-a0a3-6a39c3fbeec4 became leader
I0617 08:23:46.933075 1 controller.go:680] Started provisioner controller fuseim.pri/ifs_nfs-client-provisioner-5b5fb4577-ctmbc_4b5d5b32-cf45-11eb-a0a3-6a39c3fbeec4!