Skip to content

Commit

Permalink
chore(README.md): add note regarding structure of CODER_IMAGE_PULL_SE…
Browse files Browse the repository at this point in the history
…CRET (#60)
  • Loading branch information
johnstcn authored Jan 2, 2024
1 parent b701819 commit 3900eff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,25 @@ env {
}
}
```

> **Note:**
>
> If you use external tooling to generate the secret, ensure that it is generated with the same fields as `kubectl create secret docker-registry`. You can check this with the following command:
>
> ```console
> kubectl create secret docker-registry example --docker-server=registry.domain.tld --docker-username=username --docker-password=password --dry-run=client --output=json | jq -r '.data[".dockerconfigjson"]' | base64 -d | jq
> ```
>
> Sample output:
>
> ```json
> {
> "auths": {
> "registry.domain.tld": {
> "username": "username",
> "password": "password",
> "auth": "dXNlcm5hbWU6cGFzc3dvcmQ=" // base64(username:password)
> }
> }
> }
> ```

0 comments on commit 3900eff

Please sign in to comment.