-
Store ca.crt data as a file, e.g. at your home directory. Remember its path, e.g.
~/k8scomm.ca.crt
. -
Prepare the env variables and setup the configuration:
USER=your-github-user
TOKEN=your-token
CA_PATH=path-from-the-previous-step
- Run the following commands to configure
kubectl
tool:
kubectl config set-cluster ws-${USER} \
--embed-certs=true \
--server=https://35.205.229.158 \
--certificate-authority=${CA_PATH}
kubectl config set-credentials ws-${USER} --token=${TOKEN}
kubectl config set-context ws-${USER} \
--cluster=ws-${USER} \
--user=ws-${USER} \
--namespace=${USER}
kubectl config use-context ws-${USER}
- Check how it works:
kubectl get pods
As we haven't released anything yet, you will not see pods. But you shouldn't see any error either.