V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
root01
V2EX  ›  Kubernetes

持久化这种属于错误吗?

  •  
  •   root01 · 2021-06-17 16:42:08 +08:00 · 898 次点击
    这是一个创建于 1258 天前的主题,其中的信息可能已经有所发展或是发生改变。

    #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!
    
    
    thet
        1
    thet  
       2021-06-17 17:32:06 +08:00
    看起来是 cni 网络插件的问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1070 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:29 · PVG 06:29 · LAX 14:29 · JFK 17:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.