Skip to content

Commit

Permalink
Merge pull request #3587 from uselagoon/docs-update-ssh-token-instruc…
Browse files Browse the repository at this point in the history
…tions

Update docs for getting k8s token used for ssh-core
  • Loading branch information
tobybellwood authored Nov 5, 2023
2 parents f427908 + 7949ca2 commit 85e41b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 2 additions & 0 deletions docs/installing-lagoon/install-lagoon-remote.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Now we will install Lagoon Remote into the Lagoon namespace. The [RabbitMQ](../d
user: root
```
1. Enable [ssh-core service account](https://github.com/uselagoon/lagoon-charts/blob/main/charts/lagoon-remote/values.yaml#L116-L125)
1. Install Lagoon Remote:
```bash title="Install Lagoon remote"
Expand Down
14 changes: 3 additions & 11 deletions docs/installing-lagoon/querying-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,10 @@
1. `name`: get from `lagoon-remote-values.yml`
2. `consoleUrl`: API Endpoint of Kubernetes cluster. Get from `values.yml`
3. `token`: create a token for the `lagoon-build-deploy` service account
3. `token`: get a token for the `ssh-core` service account
```bash title="Create token"
kubectl -n lagoon create token lagoon-build-deploy --duration 3h
```
!!! Warning "Prior to Kubernetes 1.21:"
Use the `lagoon-build-deploy` token installed by `lagoon-remote`:
```bash title="Use deploy token"
kubectl -n lagoon describe secret \
$(kubectl -n lagoon get secret | grep lagoon-build-deploy | awk '{print $1}') | grep token: | awk '{print $2}'
```bash title="Get token"
kubectl -n lagoon get secret/lagoon-remote-ssh-core-token -o json | jq -r '.data.token | @base64d'
```
!!! Info
Expand Down

0 comments on commit 85e41b3

Please sign in to comment.