diff options
author | vasundhra <vasundhra.choudhary@amdocs.com> | 2017-11-22 13:13:27 +0000 |
---|---|---|
committer | vasundhra <vasundhra.choudhary@amdocs.com> | 2017-11-22 13:18:26 +0000 |
commit | d76102d75fc5140cb21593ecf5d415f878fbf359 (patch) | |
tree | 000b2b26879b96afc61ece9a4fc73c86e1345bf3 /kubernetes/sdnc/templates/dgbuilder-deployment.yaml | |
parent | 1cee1a3eb985815da8d55ca7bcfa2bf3ac092d34 (diff) |
Update annotations to spec for sdnc
Issue-ID: OOM-406
Change-Id: I0a05abedc71001a7d41806067e3adbd4e108f3f1
Signed-off-by: vasundhra <vasundhra.choudhary@amdocs.com>
Diffstat (limited to 'kubernetes/sdnc/templates/dgbuilder-deployment.yaml')
-rw-r--r-- | kubernetes/sdnc/templates/dgbuilder-deployment.yaml | 47 |
1 files changed, 18 insertions, 29 deletions
diff --git a/kubernetes/sdnc/templates/dgbuilder-deployment.yaml b/kubernetes/sdnc/templates/dgbuilder-deployment.yaml index 2fb4650a50..e0f8b298e9 100644 --- a/kubernetes/sdnc/templates/dgbuilder-deployment.yaml +++ b/kubernetes/sdnc/templates/dgbuilder-deployment.yaml @@ -13,35 +13,24 @@ spec: labels: app: sdnc-dgbuilder name: sdnc-dgbuilder - annotations: - pod.beta.kubernetes.io/init-containers: '[ - { - "args": [ - "--container-name", - "sdnc-db-container", - "--container-name", - "sdnc-controller-container" - ], - "command": [ - "/root/ready.py" - ], - "env": [ - { - "name": "NAMESPACE", - "valueFrom": { - "fieldRef": { - "apiVersion": "v1", - "fieldPath": "metadata.namespace" - } - } - } - ], - "image": "{{ .Values.image.readiness }}", - "imagePullPolicy": "{{ .Values.pullPolicy }}", - "name": "sdnc-dgbuilder-readiness" - } - ]' spec: + initContainers: + - command: + - /root/ready.py + args: + - --container-name + - sdnc-db-container + - --container-name + - sdnc-controller-container + env: + - name: NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: {{ .Values.image.readiness }} + imagePullPolicy: {{ .Values.pullPolicy }} + name: sdnc-dgbuilder-readiness containers: - command: - /bin/bash @@ -73,4 +62,4 @@ spec: path: /etc/localtime imagePullSecrets: - name: "{{ .Values.nsPrefix }}-docker-registry-key" -#{{ end }}
\ No newline at end of file +#{{ end }} |