Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
6749455e
Commit
6749455e
authored
Feb 22, 2019
by
danielgruesso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace deprecated method to create clusterole
parent
3190e3ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
doc/install/kubernetes/preparation/tiller.md
doc/install/kubernetes/preparation/tiller.md
+10
-4
No files found.
doc/install/kubernetes/preparation/tiller.md
View file @
6749455e
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment