mirror of https://github.com/knative/docs.git
More documentations regarding K8S_USER_OVERRIDE. (#310)
More documentations regarding K8S_USER_OVERRIDE.
This commit is contained in:
parent
b2bdb9d0d1
commit
c2f1e9789c
|
@ -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
|
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
|
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
|
project in an environment variable (e.g. `PROJECT_ID`).
|
||||||
of your GCP user (`GCP_USER`).
|
|
||||||
|
|
||||||
1. Enable the k8s API:
|
1. Enable the k8s API:
|
||||||
|
|
||||||
|
@ -60,13 +59,13 @@ To use a k8s cluster running in GKE:
|
||||||
```shell
|
```shell
|
||||||
kubectl create clusterrolebinding gcloud-admin-binding \
|
kubectl create clusterrolebinding gcloud-admin-binding \
|
||||||
--clusterrole=cluster-admin \
|
--clusterrole=cluster-admin \
|
||||||
--user=$GCP_USER
|
--user=$(gcloud config get-value core/account)
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Add to your .bashrc:
|
1. Add to your .bashrc:
|
||||||
```shell
|
```shell
|
||||||
# When using GKE, the K8s user is your GCP user.
|
# 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
|
## Minikube
|
||||||
|
|
Loading…
Reference in New Issue