Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for getting k8s token used for ssh-core #3587

Merged
merged 1 commit into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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