Skip to content

Commit 2218615

Browse files
authored
DOC: integrating external container registry doc (#1271)
* integrating external container registry doc. * added documentation link of imagePullSecrets
1 parent d32f9a3 commit 2218615

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/user-guide/global-configurations/docker-registries.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,21 @@ Some popular registries which can be used using username and password mechanism:
107107
![](../../user-guide/global-configurations/images/Container_Registry_gcr.jpg)
108108

109109
* **Google Artifact Registry (GAR)** : JSON key file authentication method can be used to authenticate with username and password. Please follow [link](https://cloud.google.com/artifact-registry/docs/docker/authentication#json-key) for getting username and password for this registry. Please remove all the white spaces from json key and wrap it in single quote while putting in password field.
110-
* **Azure Container Registry (ACR)** : Service principal authentication method can be used to authenticate with username and password. Please follow [link](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-auth-service-principal) for getting username and password for this registry.
110+
* **Azure Container Registry (ACR)** : Service principal authentication method can be used to authenticate with username and password. Please follow [link](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-auth-service-principal) for getting username and password for this registry.
111+
112+
## Integrating With External Container Registry
113+
114+
If you want to use a private registry for container registry other than ecr, this will be used to push image and then create a secret in same environment to pull the image to deploy. To create secret, go to charts section and search for chart ‘dt-secrets’ and configure the chart. Provide an App Name and select the Project and Environment in which you want to deploy this chart and then configure the values.yaml as shown in example. The given example is for DockerHub but you can configure similarly for any container registry that you want to use.
115+
116+
```yaml
117+
name: regcred
118+
type: kubernetes.io/dockerconfigjson
119+
labels:
120+
test: chart
121+
secrets:
122+
data:
123+
- key: .dockerconfigjson
124+
value: '{"auths":{"https://index.docker.io/v1/":{"username":"<username>","password":"<password>}}}'
125+
```
126+
127+
The `name` that you provide in values.yaml ie. `regcred` is name of the secret that will be used as `imagePullSecrets` to pull the image from docker hub to deploy. To know how `imagePullSecrets` will be used in the deployment-template, please follow the [documentation](https://docs.devtron.ai/devtron/user-guide/creating-application/deployment-template/rollout-deployment#imagepullsecrets).

0 commit comments

Comments
 (0)