summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/templates/sdc-kb.yaml
diff options
context:
space:
mode:
authorvasundhra <vasundhra.choudhary@amdocs.com>2017-11-22 12:43:29 +0000
committervasundhra <vasundhra.choudhary@amdocs.com>2017-11-22 12:45:53 +0000
commit98960b61f593c2da2696845702c821d306d60c23 (patch)
tree39a41b0321aac3fbcc559036014bcafea43d9392 /kubernetes/sdc/templates/sdc-kb.yaml
parentbda2ac819dc074c3f8685f05b4669fd4c89ede3d (diff)
Update annotations to spec for sdc
Issue-ID: OOM-406 Change-Id: Ib56669c7d0919700c5a7247195564a789329ee3c Signed-off-by: vasundhra <vasundhra.choudhary@amdocs.com>
Diffstat (limited to 'kubernetes/sdc/templates/sdc-kb.yaml')
-rw-r--r--kubernetes/sdc/templates/sdc-kb.yaml47
1 files changed, 18 insertions, 29 deletions
diff --git a/kubernetes/sdc/templates/sdc-kb.yaml b/kubernetes/sdc/templates/sdc-kb.yaml
index 1f6f6e8dbf..a7334d4d08 100644
--- a/kubernetes/sdc/templates/sdc-kb.yaml
+++ b/kubernetes/sdc/templates/sdc-kb.yaml
@@ -15,35 +15,24 @@ spec:
labels:
app: sdc-kb
name: sdc-kb
- annotations:
- pod.beta.kubernetes.io/init-containers: '[
- {
- "args": [
- "--container-name",
- "sdc-es",
- "--container-name",
- "sdc-cs"
- ],
- "command": [
- "/root/ready.py"
- ],
- "env": [
- {
- "name": "NAMESPACE",
- "valueFrom": {
- "fieldRef": {
- "apiVersion": "v1",
- "fieldPath": "metadata.namespace"
- }
- }
- }
- ],
- "image": "{{ .Values.image.readiness }}",
- "imagePullPolicy": "{{ .Values.pullPolicy }}",
- "name": "sdc-kb-readiness"
- }
- ]'
spec:
+ initContainers:
+ - command:
+ - /root/ready.py
+ args:
+ - --container-name
+ - sdc-es
+ - --container-name
+ - sdc-cs
+ env:
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ apiVersion: v1
+ fieldPath: metadata.namespace
+ image: {{ .Values.image.readiness }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: sdc-kb-readiness
containers:
- env:
- name: ENVNAME
@@ -80,4 +69,4 @@ spec:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
-#{{ end }} \ No newline at end of file
+#{{ end }}