码迷,mamicode.com
首页 > 其他好文 > 详细

二进制部署k8s集群(五):部署kubelet

时间:2020-07-03 01:12:55      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:round   code   ISE   进制   cer   style   config   api   文件内容   

签发kubelet证书

前面安装kube-apiserver的时候已经签发过证书,在前面签发证书的基础上签发kubelet证书,与前面签发的证书共用cat私钥文件与根配置文件ca-config.json 。

切换到192.168.0.102虚拟机。

vi /opt/certs/kubelet-csr.json

kubelet-csr.json 文件内容:
{
  "CN": "k8s-kubelet",
  "hosts": [
    "127.0.0.1",
    "192.168.0.51",
    "192.168.0.52",
    "192.168.0.53",
    "192.168.0.54",
    "192.168.0.55",
    "192.168.0.56",
    "192.168.0.57",
    "192.168.0.58",
    "192.168.0.59",
    "192.168.0.60",
    "192.168.0.101",
    "192.168.0.102",
    "192.168.0.103",
    "192.168.0.104",
    "192.168.0.105",
    "192.168.0.106",
    "192.168.0.107",
    "192.168.0.108",
    "192.168.0.109",
    "192.168.0.110",
    "192.168.0.161",
    "192.168.0.162",
    "192.168.0.163",
    "192.168.0.164",
    "192.168.0.165",
    "192.168.0.166",
    "192.168.0.167",
    "192.168.0.168",
    "192.168.0.169",
    "192.168.0.170"
  ],
  "key": {
    "algo": "rsa",
    "size": 2048
  },
  "names": [
    {
      "C": "CN",
      "ST": "Beijing",
      "L": "Beijing",
      "O": "k8s",
      "OU": "system"
    }
  ]
}

 

二进制部署k8s集群(五):部署kubelet

标签:round   code   ISE   进制   cer   style   config   api   文件内容   

原文地址:https://www.cnblogs.com/yyee/p/13227826.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!