#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!
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.