summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/policy-pap/templates/deployment.yaml
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-04-12 18:56:03 +0000
committerramverma <ram.krishna.verma@est.tech>2019-04-12 18:56:03 +0000
commit6acdabf126d24f2f01a360e8e4ff1837ac264b09 (patch)
treef00c20701e0bc75541968197baf64841706707c2 /kubernetes/policy/charts/policy-pap/templates/deployment.yaml
parent44bb1331811826ab4ac256a8c60b9333e68bd2da (diff)
Adding configurations & fixing policy/pap charts
1) Adding db configurations. 2) Adding dmaap topic configurations. 3) Adding "policyadmin" db. 4) Updating policy/pap charts. 5) Adding "operationshistory" db. Change-Id: I50b67255cfc1d636d0f370d6c93628a30d6dac26 Issue-ID: POLICY-1640 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'kubernetes/policy/charts/policy-pap/templates/deployment.yaml')
-rw-r--r--kubernetes/policy/charts/policy-pap/templates/deployment.yaml17
1 files changed, 16 insertions, 1 deletions
diff --git a/kubernetes/policy/charts/policy-pap/templates/deployment.yaml b/kubernetes/policy/charts/policy-pap/templates/deployment.yaml
index 5bec94b102..4945f766d8 100644
--- a/kubernetes/policy/charts/policy-pap/templates/deployment.yaml
+++ b/kubernetes/policy/charts/policy-pap/templates/deployment.yaml
@@ -16,12 +16,27 @@ spec:
app: {{ include "common.name" . }}
release: {{ .Release.Name }}
spec:
+ initContainers:
+ - command:
+ - /root/ready.py
+ args:
+ - --container-name
+ - {{ .Values.global.mariadb.nameOverride }}
+ 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 }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command: ["/opt/app/policy/pap/bin/policy-pap.sh"]
- args: ["/opt/app/policy/pap/etc/mounted/config.json"]
+ args: ["/opt/app/policy/pap/etc/mounted/config.json", "/opt/app/policy/pap/etc/mounted/topic.properties"]
ports:
- containerPort: {{ .Values.service.internalPort }}
# disable liveness probe when breakpoints set in debugger