Skip to content

Commit

Permalink
Upgrade cluster scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitmaji committed Sep 22, 2022
1 parent 709c0d1 commit 075bf9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_k8s/gok
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ EOF
echo "======Kubeconfig file user ${USERNAME}.conf generated"

kubectl config set-cluster cloud.com --certificate-authority=/etc/kubernetes/pki/ca.crt --embed-certs=true --server=https://${IP}:6443 --kubeconfig=/root/${USERNAME}.conf
kubectl config set-credentials ${USERNAME} --client-key=${USERNAME}.key --client-certificate=${USERNAME}.crt --embed-certs=true
kubectl config set-credentials ${USERNAME} --client-key=${USERNAME}.key --client-certificate=${USERNAME}.crt --embed-certs=true --kubeconfig=/root/${USERNAME}.conf
kubectl config --kubeconfig=/root/${USERNAME}.conf set-context ${USERNAME}@cloud.com --cluster=cloud.com --user=${USERNAME}
kubectl config --kubeconfig=/root/${USERNAME}.conf use-context ${USERNAME}@cloud.com

Expand Down

0 comments on commit 075bf9b

Please sign in to comment.