手动制作CA证书

一、安装 CFSSL

 证书下载官方地址:https://pkg.cfssl.org

[[email protected] ~]# cd /usr/local/src
[[email protected]-node1 src]# wget https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
[[email protected] src]# wget https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
[[email protected] src]# wget https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64
[[email protected] src]# chmod +x cfssl*
[[email protected]-node1 src]# mv cfssl-certinfo_linux-amd64 /opt/kubernetes/bin/cfssl-certinfo
[[email protected]-node1 src]# mv cfssljson_linux-amd64  /opt/kubernetes/bin/cfssljson
[[email protected]-node1 src]# mv cfssl_linux-amd64  /opt/kubernetes/bin/cfssl
复制cfssl命令文件到k8s-node1和k8s-node2节点。如果实际中多个节点,就都需要同步复制。
[[email protected]-node1 ~]# scp /opt/kubernetes/bin/cfssl* 192.168.56.12: /opt/kubernetes/bin
[[email protected]-node1 ~]# scp /opt/kubernetes/bin/cfssl* 192.168.56.13: /opt/kubernetes/bin

 

 

猜你喜欢

转载自www.cnblogs.com/hwlong/p/9107467.html
0条评论
添加一条新回复