summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml
diff options
context:
space:
mode:
authorMichael Mokry <michael.mokry@att.com>2019-04-14 20:24:43 -0500
committerMichael Mokry <michael.mokry@att.com>2019-04-15 08:25:16 -0500
commit3b2647ab0e41a9f5f94cd6e9b743a80dd4c05694 (patch)
treec267fb2d7cb9e19b6fd5c710ecb2d050ad77a19c /kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml
parent44bb1331811826ab4ac256a8c60b9333e68bd2da (diff)
Updated policy/xacml-pdp Charts
1. Added DB configurations 2. Added dmaap topic.properties 3. Updated charts for dmaap topics 4. Updated charts for db configurations Change-Id: I42d9ed05d342273304c7065438651bba28ff3ffe Issue-ID: POLICY-1640 Signed-off-by: Michael Mokry <michael.mokry@att.com>
Diffstat (limited to 'kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml')
-rw-r--r--kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml17
1 files changed, 16 insertions, 1 deletions
diff --git a/kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml b/kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml
index 20b2afbf50..e5e94ccc95 100644
--- a/kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml
+++ b/kubernetes/policy/charts/policy-xacml-pdp/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/pdpx/bin/policy-pdpx.sh"]
- args: ["/opt/app/policy/pdpx/etc/mounted/config.json"]
+ args: ["/opt/app/policy/pdpx/etc/mounted/config.json","/opt/app/policy/pdpx/etc/mounted/topic.properties"]
ports:
- containerPort: {{ .Values.service.internalPort }}
# disable liveness probe when breakpoints set in debugger