diff options
author | 2018-10-29 14:23:55 +0000 | |
---|---|---|
committer | 2018-10-29 14:31:24 +0000 | |
commit | 166f63f937c70316bfba3e1efabbd647643d0e42 (patch) | |
tree | 0acda8f02f5fcaa24a31a30263c04ed7d6d4021a /charts/aai-champ/templates/deployment.yaml | |
parent | 18556c8bda2dd3357ffc7e2939e46b369dba07fe (diff) |
Fix champ pod starting before cassandra pods
Add readiness check to champ deployment.yaml to only start champ once
cassandra pods are successfully started
Issue-ID: AAI-1770
Change-Id: I4a1d3008d5368766d259325c73dfa14a8b47c1ce
Signed-off-by: michaere <michaere@amdocs.com>
Diffstat (limited to 'charts/aai-champ/templates/deployment.yaml')
-rw-r--r-- | charts/aai-champ/templates/deployment.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/charts/aai-champ/templates/deployment.yaml b/charts/aai-champ/templates/deployment.yaml index 0c125b1..4e1866c 100644 --- a/charts/aai-champ/templates/deployment.yaml +++ b/charts/aai-champ/templates/deployment.yaml @@ -31,6 +31,21 @@ spec: app: {{ include "common.name" . }} release: {{ .Release.Name }} spec: + initContainers: + - command: + - /root/ready.py + args: + - --container-name + - aai-cassandra + env: + - name: NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}" + imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + name: {{ include "common.name" . }}-readiness containers: - name: {{ include "common.name" . }} image: "{{ include "common.repository" . }}/{{ .Values.image }}" |