diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-02-04 22:02:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-02-04 22:02:40 +0000 |
commit | a93725086000baf8be0b591effec9cf01eeab311 (patch) | |
tree | 47ecfdf69c20eec6dab2c87d0c5f76b3ffb8a1e8 /kubernetes/aai/templates/deployment.yaml | |
parent | 0721aec1073fbc690fe0d775ec5cf6a71bbb30ca (diff) | |
parent | 87f49af6feef4af57a1a977d10a7ac05428cc5c7 (diff) |
Merge "[AAI] Use CertInitializer for AAI Proxy"
Diffstat (limited to 'kubernetes/aai/templates/deployment.yaml')
-rw-r--r-- | kubernetes/aai/templates/deployment.yaml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/kubernetes/aai/templates/deployment.yaml b/kubernetes/aai/templates/deployment.yaml index 83d78238b0..2ca489f2de 100644 --- a/kubernetes/aai/templates/deployment.yaml +++ b/kubernetes/aai/templates/deployment.yaml @@ -39,7 +39,7 @@ spec: annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: - initContainers: + initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }} - command: - /app/ready.py args: @@ -75,9 +75,7 @@ spec: subPath: haproxy.cfg {{ end }} name: haproxy-cfg - - mountPath: /etc/ssl/private/aai.pem - name: aai-pem - subPath: aai.pem + {{- include "common.certInitializer.volumeMount" . | nindent 8 }} ports: - containerPort: {{ .Values.service.internalPort }} # disable liveness probe when breakpoints set in debugger @@ -128,8 +126,6 @@ spec: - name: haproxy-cfg configMap: name: aai-deployment-configmap - - name: aai-pem - secret: - secretName: aai-haproxy-secret + {{ include "common.certInitializer.volumes" . | nindent 8 }} imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" |