zoukankan      html  css  js  c++  java
  • failed to teardown pod "coredns-7ff77c879f-hkj5z_kube-system : x509: certificate signed by unknown authority

    Events:
      Type     Reason                  Age               From               Message
      ----     ------                  ----              ----               -------
      Normal   Scheduled               27s               default-scheduler  Successfully assigned kube-system/coredns-7ff77c879f-hkj5z to centos7
      Warning  FailedCreatePodSandBox  25s               kubelet, centos7   Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "fdfc6a8f12bade06b73930dea5f7a3698ebcdabfea59fa1290fde19fbdb5891a" network for pod "coredns-7ff77c879f-hkj5z": networkPlugin cni failed to set up pod "coredns-7ff77c879f-hkj5z_kube-system" network: error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes"), failed to clean up sandbox container "fdfc6a8f12bade06b73930dea5f7a3698ebcdabfea59fa1290fde19fbdb5891a" network for pod "coredns-7ff77c879f-hkj5z": networkPlugin cni failed to teardown pod "coredns-7ff77c879f-hkj5z_kube-system" network: error getting ClusterInformation: Get "https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")]
      Normal   SandboxChanged          9s (x2 over 25s)  kubelet, centos7   Pod sandbox changed, it will be killed and re-created.
    [root@centos7 ~]# ls /etc/cni/
    net.d
    [root@centos7 ~]# ls /etc/cni/net.d/
    10-calico.conflist  10-flannel.conflist  calico-kubeconfig
    [root@centos7 ~]# rm -rf /etc/cni/net.d/10-calico.conflist 
    [root@centos7 ~]# rm -rf /etc/cni/net.d/calico-kubeconfig 
    mkdir -p $HOME/.kube
    cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
    chown $(id -u):$(id -g) $HOME/.kube/config
    echo export KUBECONFIG=~/.kube/config>> ~/.bashrc
    source ~/.bashrc
    [root@centos7 ~]# kubectl get pods  --all-namespaces
    NAMESPACE     NAME                              READY   STATUS    RESTARTS   AGE
    kube-system   coredns-7ff77c879f-hkj5z          1/1     Running   0          97s
    kube-system   coredns-7ff77c879f-w5v8q          1/1     Running   0          3m46s
    kube-system   etcd-centos7                      1/1     Running   0          28m
    kube-system   kube-apiserver-centos7            1/1     Running   0          28m
    kube-system   kube-controller-manager-centos7   1/1     Running   0          28m
    kube-system   kube-flannel-ds-arm64-gmljw       1/1     Running   0          7m31s
    kube-system   kube-proxy-dv7lj                  1/1     Running   0          28m
    kube-system   kube-scheduler-centos7            1/1     Running   0          28m
  • 相关阅读:
    [K/3Cloud] 关于单据转换的问题
    [K/3Cloud] 分录行复制和新增行的冲突如何处理
    [K/3Cloud] 动态表单打开时传递一个自定义参数并在插件中获取
    [译]C++书籍终极推荐
    Time.deltaTime 含义和应用
    cocos2d-x 锚点,位置==》动手实验记录 多动手... :)
    iOS的主要框架介绍
    xcode 预编译头文件
    android 内部存储相关知识点: getfilestreampath getDir 子文件夹
    coco2d-js 多屏适配相关API
  • 原文地址:https://www.cnblogs.com/dream397/p/15162022.html
Copyright © 2011-2022 走看看