diff options
author | 2018-11-05 12:24:45 -0500 | |
---|---|---|
committer | 2018-11-05 20:45:35 +0000 | |
commit | d9a563510d84d8c497adc1e758f42d8cedb00c66 (patch) | |
tree | e9cb561f4a928f709506a90f55ef30b766e20670 /kubernetes/pomba/charts/pomba-contextaggregator/templates/deployment.yaml | |
parent | b46cd633697ad7866ee789d5f881f7008248ec82 (diff) |
BugFix:CtxAggr doesn't pick up events- OOM chg
The root cause is due to DMaap topic wasn't created on a freshly
deployed system.
The solution is to create these POMBA related topics if not exists.
Issue-ID: LOG-794
Change-Id: I0d9aabbbcb649d355b1928e05292f8b51c38ef9f
Signed-off-by: Leigh, Phillip (pl876u) <phillip.leigh@amdocs.com>
Diffstat (limited to 'kubernetes/pomba/charts/pomba-contextaggregator/templates/deployment.yaml')
-rwxr-xr-x | kubernetes/pomba/charts/pomba-contextaggregator/templates/deployment.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/kubernetes/pomba/charts/pomba-contextaggregator/templates/deployment.yaml b/kubernetes/pomba/charts/pomba-contextaggregator/templates/deployment.yaml index 44268db46e..52a28d012c 100755 --- a/kubernetes/pomba/charts/pomba-contextaggregator/templates/deployment.yaml +++ b/kubernetes/pomba/charts/pomba-contextaggregator/templates/deployment.yaml @@ -30,6 +30,21 @@ spec: app: {{ include "common.name" . }} release: {{ .Release.Name }} spec: + initContainers: + - command: + - /root/ready.py + args: + - --container-name + - message-router + 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 }}" @@ -63,6 +78,10 @@ spec: - mountPath: /opt/app/config/builders name: {{ include "common.fullname" . }}-config-builders readOnly: true + - mountPath: /opt/app/bin/pre_start.sh + name: {{ include "common.fullname" . }}-pre-start + subPath: pre_start.sh + readOnly: false resources: {{ include "common.resources" . | indent 12 }} {{- if .Values.nodeSelector }} @@ -83,5 +102,9 @@ spec: - name: {{ include "common.fullname" . }}-config-builders configMap: name: {{ include "common.fullname" . }}-configmap-builders + - name: {{ include "common.fullname" . }}-pre-start + configMap: + name: {{ include "common.fullname" . }}-pre-start-configmap + defaultMode: 0777 imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" |