diff options
author | 2021-03-22 17:27:41 +0000 | |
---|---|---|
committer | 2021-03-22 17:27:41 +0000 | |
commit | d037d55e677a693af8df24942c2b0e0381d7e331 (patch) | |
tree | 7bdb210c8ee2c15aa77b4c23013982c2e17b43e6 /kubernetes/vnfsdk/templates/deployment.yaml | |
parent | e270b78384bfcca50fdf699b0485869c3dfd5739 (diff) | |
parent | 554bc6b6d540810be1fd2c4fa1117719c21527de (diff) |
Merge "[VNFSDK] Automatically retrieve certificates"
Diffstat (limited to 'kubernetes/vnfsdk/templates/deployment.yaml')
-rw-r--r-- | kubernetes/vnfsdk/templates/deployment.yaml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/kubernetes/vnfsdk/templates/deployment.yaml b/kubernetes/vnfsdk/templates/deployment.yaml index 7e4ad5bd92..89eba2f360 100644 --- a/kubernetes/vnfsdk/templates/deployment.yaml +++ b/kubernetes/vnfsdk/templates/deployment.yaml @@ -35,7 +35,7 @@ spec: release: {{ include "common.release" . }} name: {{ include "common.name" . }} spec: - initContainers: + initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }} - command: - sh args: @@ -75,10 +75,13 @@ spec: name: {{ include "common.name" . }} resources: {{ include "common.resources" . | indent 12 }} - volumeMounts: + volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 8 }} - mountPath: /service/webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml name: init-data subPath: configuration.xml + - mountPath: /etc/nginx/nginx.conf + name: nginx + subPath: nginx.conf readinessProbe: tcpSocket: port: {{ .Values.service.internalPort }} @@ -86,10 +89,13 @@ spec: periodSeconds: {{ .Values.readiness.periodSeconds }} imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" - volumes: + volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }} - name: init-data-input configMap: name: {{ include "common.fullname" . }} + - name: nginx + configMap: + name: {{ include "common.fullname" . }}-nginx - name: init-data emptyDir: medium: Memory |