执行下面命令初始化k8s集群时

kubeadm init --pod-network-cidr 10.21.0.0/16 \--image-repository registry.cn-hangzhou.aliyuncs.com/google_containers

通过 kubectl get pods -n kube-system 查看pods状态

发现coredns对应的pod状态为ContainerCreating,

通过kubectl describe pods -n kube-system coredns-6c76c8bb89-9br5d 查看对应pod状态有下面错误信息:

reate pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "5ac64afb8a4f7c98aeeb5f459a80410cb9b180ad92322adc0bfe0b9ce1c81107" network for pod "coredns-6c76c8bb89-jlzgn": networkPlugin cni failed to set up pod "coredns-6c76c8bb89-jlzgn_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 "5ac64afb8a4f7c98aeeb5f459a80410cb9b180ad92322adc0bfe0b9ce1c81107" network for pod "coredns-6c76c8bb89-jlzgn": networkPlugin cni failed to teardown pod "coredns-6c76c8bb89-jlzgn_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")]

网上搜索一圈无效后又研究了下kubeadm reset命令执行后的输出结果:

The reset process does not clean CNI configuration. To do so, you must remove /etc/cni/net.d

The reset process does not reset or clean up iptables rules or IPVS tables.
If you wish to reset iptables, you must do so manually by using the "iptables" command.

If your cluster was setup to utilize IPVS, run ipvsadm --clear (or similar)
to reset your system's IPVS tables.

The reset process does not clean your kubeconfig files and you must remove them manually.
Please, check the contents of the $HOME/.kube/config file.

然后根据上面的提示把/etc/cni/net.d目录删掉,然后重新执行kubeadm init命令就可以了。

x509: certificate signed by unknown authority (possibly because of “crypto/rsa: verification error“相关推荐

  1. k8s系列之:Unable to connect to the server: x509: certificate signed by unknown authority

    k8s系列之:Unable to connect to the server: x509: certificate signed by unknown authority K8s使用kubeadm r ...

  2. kubectl get node运行时出现:Unable to connect to the server: x509: certificate signed by unknown authority

    kubectl get nodes运行时出现:Unable to connect to the server: x509: certificate signed by unknown authorit ...

  3. docker-compose部署的服务访问https报错:x509: certificate signed by unknown authority

    最近写了几个推特API的接口,在本机(mac)测试的时候好好的 部署到服务器上的时候发现不能用了 报错: {"code": 500,"msg": "e ...

  4. Harbor docker login x509 certificate signed by unknown authority

    文章目录 Harbor docker login x509 certificate signed by unknown authority 前言 生成的证书 方法一 方法二 方法三 参考文档 Harb ...

  5. 使用golang发送邮件,报错“x509: certificate signed by unknown authority”

    问题描述 使用golang发送邮件,报错"x509: certificate signed by unknown authority",这是由于客户端默认要对服务端传过来的数字证书 ...

  6. x509: certificate signed by unknown authority (harbor)

    最近在做Docker相关的东西,发现只要一pull镜像,就出现如下的ERROR x509: certificate signed by unknown authority. 调查后发现,是公司IT把h ...

  7. Docker在windows环境 使用阿里云镜像 pull 报错 x509: certificate signed by unknown authority

    本人使用的环境是 windows7 ,使用docker toolbox安装, 使用的是阿里云镜像,使用阿里云镜像相关操作阿里云上有操作步骤 https://cr.console.aliyun.com/ ...

  8. gomail发送邮件报:x509: certificate signed by unknown authority的解决方法

    今天在项目上遇到一个问题,项目上使用gomail库进行邮件的发送,在自己电脑上测试是可以正常发送邮件的,但是要上线的前一天,进行了上线部署测试,结果发送邮件的功能一直报错,通过谷歌找到了解决方法. 报 ...

  9. docker登录私库时提示 x509: certificate signed by unknown authority

    docker登录私库时提示 x509: certificate signed by unknown authority 编辑daemon.json vim /etc/docker/daemon.jso ...

最新文章

  1. shell script
  2. 【去广告首选】优酷云-A站-B站-优酷-乐视-搜狐--pptv 接口分享
  3. 您是否敢更改HashMap实现?
  4. java中取系统时间_JAVA中获取当前系统时间(示例代码)
  5. html点线面制作,利用HTML5绘制点线面组成的3D图形的示例_html5教程技巧
  6. CentOS 设置网络(修改IP修改网关修改DNS)
  7. 九龙山风电场电气一次部分初步设计
  8. instanceof和containsKey以及claims.getExpiration()以及expiration.before()的用法
  9. 阅读了Steve Yegge的文章。其中有一篇叫“Practicing Programming”(练习编程),写成于2005年
  10. 工业企业成本费用的核算方法
  11. 防范勒索软件的七大举措
  12. 基层教学组织评估系统6_项目完结心得收获、思考人生篇
  13. matlab频谱分析中振幅的物理意义,频谱图分析的意义,频谱图的物理意义是什么呢,频率的振幅能够反映什么物理意义呢?(例如下图)请哪位大师指点,不胜感激!...
  14. PHPStorm 配置 debug 默认参数
  15. NYOJ 427 Number Sequence
  16. 大众点评的大数据实践转
  17. Win7下SQLite安装配置与使用方法详解
  18. 详解js对称加密和非对称加密
  19. 用webbroswer控件自动点击确定按钮
  20. C# 项目如何修改项目名称

热门文章

  1. 2012 PHP热门资料64个+经典源码50个——下载目录 :
  2. 外企英语面试问题和口语技巧
  3. WEB中使用viewer.js实现在线浏览Office文档
  4. compile android soure code
  5. Door Man poj 1300
  6. 用比特彗星BitComet1.17下載Magnet
  7. 技术人对于减肥的反思
  8. Spring-Data-ElasticSearch 在查询时对【特殊字符】的处理
  9. 【智联招聘年薪65万售前】年薪65万IT售前招聘要求深层解读,你是否合适?
  10. 想了解 ADC 的非线性度吗?揭开地毯看一看:)