Added image pull secret option to download custom image from private repository (#18760)

Signed-off-by: Javier Martínez <jmartinezfl@minsait.com>
This commit is contained in:
Javier Martínez
2019-11-18 08:57:41 -08:00
committed by Kubernetes Prow Robot
parent 3479c06794
commit 08202c438d
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: sonatype-nexus
version: 1.20.0
version: 1.21.0
appVersion: 3.17.0-01
description: Sonatype Nexus is an open source repository manager
keywords:
+1
View File
@@ -68,6 +68,7 @@ The following table lists the configurable parameters of the Nexus chart and the
| `nexus.imageName` | Nexus image | `quay.io/travelaudience/docker-nexus` |
| `nexus.imageTag` | Version of Nexus | `3.17.0` |
| `nexus.imagePullPolicy` | Nexus image pull policy | `IfNotPresent` |
| `nexus.imagePullSecret` | Secret to download Nexus image from private registry | `nil` |
| `nexus.env` | Nexus environment variables | `[{install4jAddVmParams: -Xms1200M -Xmx1200M -XX:MaxDirectMemorySize=2G -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap}]` |
| `nexus.resources` | Nexus resource requests and limits | `{}` |
| `nexus.dockerPort` | Port to access docker | `5003` |
@@ -55,6 +55,10 @@ spec:
hostAliases:
{{ toYaml .Values.nexus.hostAliases | indent 8 }}
{{- end }}
{{- if .Values.nexus.imagePullSecret }}
imagePullSecrets:
- name: {{ .Values.nexus.imagePullSecret }}
{{- end }}
containers:
- name: nexus
image: {{ .Values.nexus.imageName }}:{{ .Values.nexus.imageTag }}