diff options
author | Alexis de Talhouƫt <adetalhouet89@gmail.com> | 2019-04-17 12:23:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-17 12:23:34 +0000 |
commit | ca07406a0be8f6fa5cffd37765c3760531d4b032 (patch) | |
tree | 6daf41acc94cd7a4fdab11b6409959929ef3475b /kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml | |
parent | 8950554a7acd6b14633a5420cd18b3cf6b8d93cb (diff) | |
parent | 3b2647ab0e41a9f5f94cd6e9b743a80dd4c05694 (diff) |
Merge "Updated policy/xacml-pdp Charts"
Diffstat (limited to 'kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml')
-rw-r--r-- | kubernetes/policy/charts/policy-xacml-pdp/templates/deployment.yaml | 17 |
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 |