Skip to content

Commit 8c88b9e

Browse files
authored
Merge pull request #83 from varshavaradarajan/doc-image-pull-secrets
Add documentation for pulling the gocd agent from a private registry. (#38)
2 parents ba506b8 + 42ebc69 commit 8c88b9e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,30 @@ volumeMounts:
4747

4848
```
4949

50+
### Pull image from private registry
51+
52+
###### Create a Kubernetes secret
53+
54+
```bash
55+
kubectl create secret docker-registry \
56+
my-docker-registry \
57+
--namespace gocd \
58+
--docker-server=<docker_server_url> \
59+
--docker-username=<username> \
60+
--docker-password=<password> \
61+
--docker-email=<email>
62+
```
63+
64+
65+
###### Configure pod yaml
66+
67+
In the pod spec, specify the `imagePullSecrets` section:
68+
69+
```yaml
70+
imagePullSecrets:
71+
- name: my-docker-registry
72+
```
73+
5074
# Installation
5175
5276
Documentation for installation is available [here](install.md)

0 commit comments

Comments
 (0)