1 curl

curl https://10.0.13.181:6443 --cacert /var/jenkins_home/k8s/ssl-dev/k8s-root-ca.pem --key /var/jenkins_home/k8s/ssl-dev/admin-key.pem --cert /var/jenkins_home/k8s/ssl-dev/admin.pem

2 kubectl

APISERVER_DEV="https://10.0.13.181:6443 --certificate-authority ${JENKINS_HOME}/k8s/ssl-dev/k8s-root-ca.pem --client-key ${JENKINS_HOME}/k8s/ssl-dev/admin-key.pem --client-certificate ${JENKINS_HOME}/k8s/ssl-dev/admin.pem"

kubectl -s ${APISERVER_DEV}  command

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐