Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Fixed suggestions regarding env vars and token for kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
obitech committed Apr 15, 2019
1 parent 2918e9b commit 4652ce6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/dex/00-dex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ data:
config:
# 1.2 (Optional): Enter the URL of your Gitlab instance
baseURL: https://gitlab.com
# Those environment variables are automatically substituted by
# mounting the secret 'gitlab-client'
clientID: $GITLAB_CLIENT_ID
clientSecret: $GITLAB_CLIENT_SECRET
# 1.3 The URL Gitlab redirects to. Substitute with with your Floating IP
# 1.3 The URL Gitlab redirects to. Substitute with with your
# Floating IP
redirectURI: https://%%FLOATING_IP%%:32000/callback
oauth2:
skipApprovalScreen: true
Expand Down
10 changes: 10 additions & 0 deletions docs/addons.rst
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,16 @@ Now send the request again:
"apiVersion": "v1",
# ...
Alternatively, the token can be passed directly to ``kubectl``:
.. code:: shell
$ kubectl --token=$token get nodes
{
"kind": "NodeList",
"apiVersion": "v1",
# ...
Cleanup
^^^^^^^
Expand Down

0 comments on commit 4652ce6

Please sign in to comment.