Difference between revisions of "Kubernetes"

From Athenaeum
Jump to: navigation, search
(Created page with "Manually create a kubectl config file: <pre> kubectl config set-cluster default-cluster --server=https://${MASTER} \ --certificate-authority=/path/to/ca.pem kubectl con...")
 
(No difference)

Latest revision as of 19:18, 20 May 2020

Manually create a kubectl config file:

kubectl config set-cluster default-cluster --server=https://${MASTER} \
    --certificate-authority=/path/to/ca.pem 

kubectl config set-credentials default-admin \
    --certificate-authority=/path/to/ca.pem \
    --client-key=/path/to/admin-key.pem \
    --client-certificate=/path/to/admin.pem      

kubectl config set-context default-system --cluster=default-cluster --user=default-admin
kubectl config use-context default-system