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
  • 相关阅读:
    Vsftpd 3.0.2 正式版发布
    Putdb WebBuilder 6.5 正式版本发布
    SoaBox 1.1.6 GA 发布,SOA 模拟环境
    pynag 0.4.6 发布,Nagios配置和插件管理
    Percona Playback 0.4,MySQL 负荷回放工具
    xombrero 1.3.1 发布,微型 Web 浏览器
    Hypertable 0.9.6.4 发布,分布式数据库
    libmemcached 1.0.11 发布
    CryptoHeaven 3.7 发布,安全邮件解决方案
    Android Activity生命周期
  • 原文地址:https://www.cnblogs.com/dream397/p/15162022.html
Copyright © 2011-2022 走看看