Skip to content

Commit 3900eff

Browse files
authored
chore(README.md): add note regarding structure of CODER_IMAGE_PULL_SECRET (#60)
1 parent b701819 commit 3900eff

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,25 @@ env {
6363
}
6464
}
6565
```
66+
67+
> **Note:**
68+
>
69+
> 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:
70+
>
71+
> ```console
72+
> 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
73+
> ```
74+
>
75+
> Sample output:
76+
>
77+
> ```json
78+
> {
79+
> "auths": {
80+
> "registry.domain.tld": {
81+
> "username": "username",
82+
> "password": "password",
83+
> "auth": "dXNlcm5hbWU6cGFzc3dvcmQ=" // base64(username:password)
84+
> }
85+
> }
86+
> }
87+
> ```

0 commit comments

Comments
 (0)