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
Léo-Paul Géneau
gitlab-ce
Commits
54330656
Commit
54330656
authored
Oct 11, 2018
by
Jason Colyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated commands and order from MR recomendations
parent
1fa93c6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/user/project/clusters/index.md
doc/user/project/clusters/index.md
+4
-4
No files found.
doc/user/project/clusters/index.md
View file @
54330656
...
@@ -116,15 +116,15 @@ to install some [pre-defined applications](#installing-applications).
...
@@ -116,15 +116,15 @@ to install some [pre-defined applications](#installing-applications).
If you need to determine some of the above values, the following should prove helpful:
If you need to determine some of the above values, the following should prove helpful:
-
The API URL:
-
The API URL:
-
You can get this via the command:
`kubectl config view|grep server`
-
You can get this via the command:
`kubectl cluster-info | grep 'Kubernetes master' | awk '/http/ {print $NF}'`
-
The CA Certificate:
-
You can determine the certificate via this command:
`kubectl config view --raw|awk '/certificate-authority-data/ {print $NF}'|base64 -d`
-
The Token:
-
The Token:
-
You will first need to determine which secret you need the token for.
-
You will first need to determine which secret you need the token for.
-
To list the secrets, run the command:
`kubectl get secrets`
-
To list the secrets, run the command:
`kubectl get secrets`
-
Determine which secret you want the token for
-
Determine which secret you want the token for
-
Run this command to get the token:
`kubectl
describe secrets/<SECRET_NAME>|grep ^token
`
-
Run this command to get the token:
`kubectl
get secret <SECRET_NAME> -o jsonpath="{['data']['token']}" | base64 -D
`
-
Replace
`<SECRET_NAME>`
with the secret you want the token for
-
Replace
`<SECRET_NAME>`
with the secret you want the token for
-
The CA Certificate:
-
You can determine the certificate via this command:
`kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}" | base64 -D`
## Security implications
## Security implications
...
...
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