diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2017-12-15 14:44:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-12-15 14:44:45 +0000 |
commit | 3bcdbc10ecfc127eb89a6ef77e8bc2f6b8b9ab7f (patch) | |
tree | 3c97b8bb26344b0519d828900cfa90e05b98ea03 /kubernetes/dcae/templates/cdap0-dep.yaml | |
parent | 4ad5bad29a9c75863424e1090fb82342a7eaaab0 (diff) | |
parent | dc55bbc3208daa4753e5bf83a27157d9d3aeac67 (diff) |
Merge "Update annotations to spec for dcae"
Diffstat (limited to 'kubernetes/dcae/templates/cdap0-dep.yaml')
-rw-r--r-- | kubernetes/dcae/templates/cdap0-dep.yaml | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/kubernetes/dcae/templates/cdap0-dep.yaml b/kubernetes/dcae/templates/cdap0-dep.yaml index c6239e219b..37d7d58a16 100644 --- a/kubernetes/dcae/templates/cdap0-dep.yaml +++ b/kubernetes/dcae/templates/cdap0-dep.yaml @@ -22,22 +22,15 @@ spec: labels: app: cdap0 name: cdap0 - annotations: - pod.beta.kubernetes.io/init-containers: '[ - { - "name": "create-fs", - "image": "{{ .Values.image.cdapfs }}", - "imagePullPolicy": "{{ .Values.pullPolicy }}", - "command": ["/bin/bash", "-c", "mkdir -p /cdap/{cdap0-opt-tools,cdap0-opt-data,pod-ip}; grep `hostname` /etc/hosts > /cdap/pod-ip/`hostname`_ip.txt; while [`ls /cdap/pod-ip | wc -l` < 3]; do sleep 1; done"], - "volumeMounts": [ - { - "mountPath": "/cdap", - "name": "cdap-root" - } - ] - } - ]' spec: + initContainers: + - command: ["/bin/bash", "-c", "mkdir -p /cdap/{cdap0-opt-tools,cdap0-opt-data,pod-ip}; grep `hostname` /etc/hosts > /cdap/pod-ip/`hostname`_ip.txt; while [`ls /cdap/pod-ip | wc -l` < 3]; do sleep 1; done"] + name: create-fs + image: {{ .Values.image.cdapfs }} + imagePullPolicy: {{ .Values.pullPolicy }} + volumeMounts: + - mountPath: /cdap + name: cdap-root hostname: zldcprivatecloudtruecdap00 containers: - image: {{ .Values.image.cdap }} @@ -83,4 +76,4 @@ spec: path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/cdap/cdap0-opt-data imagePullSecrets: - name: "{{ .Values.nsPrefix }}-docker-registry-key" -#{{ end }}
\ No newline at end of file +#{{ end }} |