jenkins 链接k8s

使用证书链接:
经过 ~/.kube/config 生成 cert.pfx,jenkins经过 cert.pfx来链接k8s
0、生成ca.crt
echo '' "| base64 -d > ~/ca.crt (~/.kube/config中certificate-authority-data的内容)
一、生成client.key
echo '' "| base64 -d > ~/client.key (~/.kube/config中client-key-data的内容)
二、生成client.crt
echo '' "| base64 -d > ~/client.crt (~/.kube/config中client-certificate-data的内容)
三、生成cert.pfx
openssl pkcs12 -export -inkey client.key -in client.crt -certfile ca.crt -out cert.pfx
四、jenkins 上传pkcs12文件
jenkins 链接k8side

相关文章
相关标签/搜索