aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/appc/templates/dgbuilder-deployment.yaml
diff options
context:
space:
mode:
authorkiranya <kiran.yadav@amdocs.com>2017-11-22 12:34:34 +0000
committerkiranya <kiran.yadav@amdocs.com>2017-11-22 12:36:26 +0000
commitfd583134103c4ef89fa58e74716c483f0fc4b878 (patch)
tree3964956f14851e7e96b7b6b5ffe83f3a0d0f2d80 /kubernetes/appc/templates/dgbuilder-deployment.yaml
parentbda2ac819dc074c3f8685f05b4669fd4c89ede3d (diff)
Update annotations to spec for appc
Issue-ID: OOM-406 Change-Id: I31710db92362f8a41e6605841ca7a9960fc98f24 Signed-off-by: kiranya <kiran.yadav@amdocs.com>
Diffstat (limited to 'kubernetes/appc/templates/dgbuilder-deployment.yaml')
-rw-r--r--kubernetes/appc/templates/dgbuilder-deployment.yaml47
1 files changed, 18 insertions, 29 deletions
diff --git a/kubernetes/appc/templates/dgbuilder-deployment.yaml b/kubernetes/appc/templates/dgbuilder-deployment.yaml
index b9495a740b..ea6dc78375 100644
--- a/kubernetes/appc/templates/dgbuilder-deployment.yaml
+++ b/kubernetes/appc/templates/dgbuilder-deployment.yaml
@@ -13,35 +13,24 @@ spec:
labels:
app: appc-dgbuilder
name: appc-dgbuilder
- annotations:
- pod.beta.kubernetes.io/init-containers: '[
- {
- "args": [
- "--container-name",
- "appc-db-container",
- "--container-name",
- "appc-controller-container"
- ],
- "command": [
- "/root/ready.py"
- ],
- "env": [
- {
- "name": "NAMESPACE",
- "valueFrom": {
- "fieldRef": {
- "apiVersion": "v1",
- "fieldPath": "metadata.namespace"
- }
- }
- }
- ],
- "image": "{{ .Values.image.readiness }}",
- "imagePullPolicy": "{{ .Values.pullPolicy }}",
- "name": "appc-dgbuilder-readiness"
- }
- ]'
spec:
+ initContainers:
+ - command:
+ - /root/ready.py
+ args:
+ - --container-name
+ - appc-db-container
+ - --container-name
+ - appc-controller-container
+ env:
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ apiVersion: v1
+ fieldPath: metadata.namespace
+ image: {{ .Values.image.readiness }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: appc-dgbuilder-readiness
containers:
- command:
- /bin/bash
@@ -75,4 +64,4 @@ spec:
restartPolicy: Always
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
-#{{ end }} \ No newline at end of file
+#{{ end }}