More documentations regarding K8S_USER_OVERRIDE. (#310)

More documentations regarding K8S_USER_OVERRIDE.
This commit is contained in:
Nghia Tran 2018-03-07 15:03:18 -08:00 committed by GitHub
parent b2bdb9d0d1
commit c2f1e9789c
1 changed files with 3 additions and 4 deletions

View File

@ -14,8 +14,7 @@ To use a k8s cluster running in GKE:
1. Create a GCP project (or use an existing project if you've already created
one) at http://console.cloud.google.com/home/dashboard. Set the ID of the
project in an environment variable (e.g. `PROJECT_ID`) along with the email
of your GCP user (`GCP_USER`).
project in an environment variable (e.g. `PROJECT_ID`).
1. Enable the k8s API:
@ -60,13 +59,13 @@ To use a k8s cluster running in GKE:
```shell
kubectl create clusterrolebinding gcloud-admin-binding \
--clusterrole=cluster-admin \
--user=$GCP_USER
--user=$(gcloud config get-value core/account)
```
1. Add to your .bashrc:
```shell
# When using GKE, the K8s user is your GCP user.
export K8S_USER_OVERRIDE=$GCP_USER
export K8S_USER_OVERRIDE=$(gcloud config get-value core/account)
```
## Minikube