diff options
author | vasundhra <vasundhra.choudhary@amdocs.com> | 2017-11-22 11:56:23 +0000 |
---|---|---|
committer | vasundhra <vchoudha@amdocs.com> | 2017-11-22 12:06:35 +0000 |
commit | 86243b7899c5903c92cb24ff4914da436b528920 (patch) | |
tree | 3ee65cb74e43d545ee285871b7a9649f5f078db2 /kubernetes/policy/templates/dep-pdp.yaml | |
parent | bda2ac819dc074c3f8685f05b4669fd4c89ede3d (diff) |
Update annotations to spec for policy
Issue-ID: OOM-406
Change-Id: I23e47dd28502cefc7b64fad7704aacdee51f1fc7
Signed-off-by: vasundhra <vasundhra.choudhary@amdocs.com>
Diffstat (limited to 'kubernetes/policy/templates/dep-pdp.yaml')
-rw-r--r-- | kubernetes/policy/templates/dep-pdp.yaml | 51 |
1 files changed, 20 insertions, 31 deletions
diff --git a/kubernetes/policy/templates/dep-pdp.yaml b/kubernetes/policy/templates/dep-pdp.yaml index 6cc442b417..3763b95bb2 100644 --- a/kubernetes/policy/templates/dep-pdp.yaml +++ b/kubernetes/policy/templates/dep-pdp.yaml @@ -14,37 +14,26 @@ spec: labels: app: pdp name: pdp - annotations: - pod.beta.kubernetes.io/init-containers: '[ - { - "args": [ - "--container-name", - "mariadb", - "--container-name", - "nexus", - "--container-name", - "pap" - ], - "command": [ - "/root/ready.py" - ], - "env": [ - { - "name": "NAMESPACE", - "valueFrom": { - "fieldRef": { - "apiVersion": "v1", - "fieldPath": "metadata.namespace" - } - } - } - ], - "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}", - "imagePullPolicy": "{{ .Values.pullPolicy }}", - "name": "pdp-readiness" - } - ]' spec: + initContainers: + - command: + - /root/ready.py + args: + - --container-name + - mariadb + - --container-name + - nexus + - --container-name + - pap + env: + - name: NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}" + imagePullPolicy: {{ .Values.pullPolicy }} + name: pdp-readiness containers: - command: - /bin/bash @@ -103,4 +92,4 @@ spec: path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/ imagePullSecrets: - name: "{{ .Values.nsPrefix }}-docker-registry-key" -#{{ end }}
\ No newline at end of file +#{{ end }} |