diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-02-22 14:27:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-02-22 14:27:54 +0000 |
commit | 36d4c898aa98db1ee28e2d0933b863cd385a67bd (patch) | |
tree | b95bd06872ac9077f3ed1765a177e1f10518ead2 /kubernetes/cli/templates/deployment.yaml | |
parent | 855558788acc52aef74de521373757302fd4cad7 (diff) | |
parent | bc1f4be02ce5478762261e63a624e946b6f23629 (diff) |
Merge "[CLI] Retrieve certificates automatically"
Diffstat (limited to 'kubernetes/cli/templates/deployment.yaml')
-rw-r--r-- | kubernetes/cli/templates/deployment.yaml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/kubernetes/cli/templates/deployment.yaml b/kubernetes/cli/templates/deployment.yaml index 74b2d2df37..735308754f 100644 --- a/kubernetes/cli/templates/deployment.yaml +++ b/kubernetes/cli/templates/deployment.yaml @@ -35,6 +35,7 @@ spec: app: {{ include "common.name" . }} release: {{ include "common.release" . }} spec: + initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }} containers: - name: {{ include "common.name" . }} image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} @@ -56,10 +57,10 @@ spec: port: {{ .Values.service.internalPort }} initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} - volumeMounts: - - name: ocomp-pem - mountPath: "/etc/lighttpd/ocomp.pem" - subPath: ocomp.pem + volumeMounts: {{- include "common.certInitializer.volumeMount" . | nindent 10 }} + - name: lighttpd + mountPath: "/etc/lighttpd/lighttpd.conf" + subPath: lighttpd.conf readOnly: true env: - name: OPEN_CLI_MODE @@ -74,9 +75,9 @@ spec: affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} - volumes: - - name: ocomp-pem - secret: - secretName: ocomp-pem + volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }} + - name: lighttpd + configMap: + name: {{ include "common.fullname" . }}-lighttpd imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" |