diff options
author | danielgruesso <dgruesso@gitlab.com> | 2019-02-22 13:56:11 -0500 |
---|---|---|
committer | danielgruesso <dgruesso@gitlab.com> | 2019-02-22 13:56:11 -0500 |
commit | 6749455ebb2461c3838ed8cbe7aa94517285ca8b (patch) | |
tree | 9992291d07af0449606ee1e0726dc0e979c8f73c /doc/install | |
parent | 3190e3ca4a316a57454c0d4f95907a6ba8a3ead8 (diff) | |
download | gitlab-ce-6749455ebb2461c3838ed8cbe7aa94517285ca8b.tar.gz |
Replace deprecated method to create clusterole
Diffstat (limited to 'doc/install')
-rw-r--r-- | doc/install/kubernetes/preparation/tiller.md | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/install/kubernetes/preparation/tiller.md b/doc/install/kubernetes/preparation/tiller.md index 107df074b3b..798414a99e0 100644 --- a/doc/install/kubernetes/preparation/tiller.md +++ b/doc/install/kubernetes/preparation/tiller.md @@ -54,19 +54,25 @@ Some clusters require authentication to use `kubectl` to create the Tiller roles #### Upload the RBAC config as an admin user (GKE) -For GKE, you need to grab the admin credentials: +For GKE, you need to grab the admin credentials. This command will output the admin password: ``` gcloud container clusters describe <cluster-name> --zone <zone> --project <project-id> --format='value(masterAuth.password)' ``` -This command will output the admin password. We need the password to authenticate with `kubectl` and create the role. +Use the admin password to set the admin credentials (replace password below with output value from above step): ``` -kubectl --username=admin --password=xxxxxxxxxxxxxx create -f rbac-config.yaml +kubectl config set-credentials admin --username=admin --password=xxxxxxxxxxxxxx ``` -#### Upload the RBAC config (Other clusters) +Once credentials have been set, create the role: + +``` +kubectl --user=admin create -f rbac-config.yaml +``` + +#### Upload the RBAC config (Non-GKE clusters) For other clusters like Amazon EKS, you can directly upload the RBAC configuration. |