Set up kubectl to be used with some cluster.
In kubectl_setup.sh, give appropriate values for the variables at the top of the file.
Script from https://github.com/hermanjunge/kubernetes-digitalocean-terraform
Set up kubectl to be used with some cluster.
In kubectl_setup.sh, give appropriate values for the variables at the top of the file.
Script from https://github.com/hermanjunge/kubernetes-digitalocean-terraform
export MASTER_HOST=your_master_ip | |
export CA_CERT=your_ca.pem | |
export ADMIN_CERT=your_admin.pem | |
export ADMIN_KEY=your_admin-key.pem | |
kubectl config set-cluster default-cluster \ | |
--server=https://$MASTER_HOST --certificate-authority=$CA_CERT | |
kubectl config set-credentials default-admin \ | |
--certificate-authority=$CA_CERT --client-key=$ADMIN_KEY --client-certificate=$ADMIN_CERT | |
kubectl config set-context default-system --cluster=default-cluster --user=default-admin | |
kubectl config use-context default-system |