diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2018-08-16 15:18:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-16 15:18:20 +0000 |
commit | d30de9427dfcebc7855d94b525eadfbce186059c (patch) | |
tree | a1e2e91e687c98d54ef9bd7b62df96ff6e9c2ca3 /kubernetes/aaf/charts/aaf-sms/templates | |
parent | b4145f47fc1f4e96da7220d162a3acc7f7c3a6a7 (diff) | |
parent | 55869066a1457ff6ea1758d1514d98f822f3312b (diff) |
Merge "Add readiness step for deployment"
Diffstat (limited to 'kubernetes/aaf/charts/aaf-sms/templates')
-rw-r--r-- | kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml b/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml index 4bdb84fa30..58fe72f497 100644 --- a/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml +++ b/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml @@ -30,10 +30,27 @@ spec: app: {{ include "common.name" . }} release: {{ .Release.Name }} spec: + initContainers: + - image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}" + imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + name: {{ include "common.name" . }}-readiness + command: + - /root/ready.py + args: + - --container-name + - "aaf-sms-vault" + - --container-name + - "aaf-sms-vault-backend" + env: + - name: NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace containers: - image: "{{ include "common.repository" . }}/{{ .Values.image }}" - name: {{ include "common.name" . }} imagePullPolicy: {{ .Values.pullPolicy }} + name: {{ include "common.name" . }} command: ["/sms/bin/sms"] workingDir: /sms/ ports: |