Nrejve

config2

Jan 5th, 2021
688
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. kubectl config set-cluster kubernetes-the-hard-way \
  3.  --certificate-authority=ca.pem \
  4.  --embed-certs=true \
  5.  --server=https://${KUBERNETES_PUBLIC_ADDRESS}:6443 \
  6.  --kubeconfig=kube-proxy.kubeconfig
  7.  
  8. kubectl config set-credentials system:kube-proxy \
  9.  --client-certificate=kube-proxy.pem \
  10.  --client-key=kube-proxy-key.pem \
  11.  --embed-certs=true \
  12.  --kubeconfig=kube-proxy.kubeconfig
  13.  
  14. kubectl config set-context default \
  15.  --cluster=kubernetes-the-hard-way \
  16.  --user=system:kube-proxy \
  17.  --kubeconfig=kube-proxy.kubeconfig
  18.  
  19. kubectl config use-context default --kubeconfig=kube-proxy.kubeconfig
  20. }
RAW Paste Data