diff --git a/creating-a-kubernetes-cluster.md b/creating-a-kubernetes-cluster.md index d8282d6c5..0ddc5ad44 100644 --- a/creating-a-kubernetes-cluster.md +++ b/creating-a-kubernetes-cluster.md @@ -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