jenkins 安装k8s 插件
配置k8s节点
填写k8s 配置信息
生成秘钥
在服务器上面
查看地址
Kubernetes 服务证书 key
cat /root/..kube/config 查看秘钥
对秘钥进行base64 位 加密
echo "秘钥内容" | base64 -d
-----BEGIN CERTIFICATE-----
MIIDITCCAgmgAwIBAgIIGOkRkIVlo74wDQYJKoZIhvcNAQELBQAwFTETMBEGA1UE
AxMKa3ViZXJuZXRlczAeFw0yNDAyMDgwNjAwMjdaFw0yNTAyMDcwNjA1MjhaMDQx
FzAVBgNVBAoTDnN5c3RlbTptYXN0ZXJzMRkwFwYDVQQDExBrdWJlcm5ldGVzLWFk
bWluMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApXy7XbM09F+SK4J/
kgt3jLwMNattbpl347HxK4DA1jZIe3yja91ZcAT0f7nMGjTDlb0WwHGBkln9go/j
4HKyfBgPztxGOjc9H1Rv2cpVkI99QEqiOvYyA8v9IRrWU2L7ausjncWT+vbLb52X
uu7eQ8jynDj7BuqjQ4INDyVhuO2Tqy6xhIofmeXI/ESVXF9hO9vxdHfGGthoJDa+
slAjRDwmgqBOztJOplYVLxjcWrt8XHt46EYKAOFDXFl1FdEugMkTVMcc35b8jcfG
okSjfSWlWblIU4JxuQtXSPiLpwaJ/6MgsMA5gL96gJ9hoZKNb1pwTx+wrtSPPINf
GhKmQwIDAQABo1YwVDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUH
AwIwDAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBRbJwECtbU00zIQtZj4B1fhJafE
GTANBgkqhkiG9w0BAQsFAAOCAQEApwuqCLioiAYdwLgFvXI12Ds4c+q4Vob1DaN1
giPa4ylCt/Hw8fGKx7kYmuH0FL/RJ2W7Z052kt2k4y2HX7bGVL7hGWyT6e3W+3l4
5S+UV43i04HQaBSVQye4fG+qPT7awgbo1m3gwh10sGTR9WwMieDaafwY6tDIHCNF
yIZHdtX3bnUpGErzv0Z8MDL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