diff options
Diffstat (limited to 'kubernetes/dcae/templates/cdap1-dep.yaml')
-rw-r--r-- | kubernetes/dcae/templates/cdap1-dep.yaml | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/kubernetes/dcae/templates/cdap1-dep.yaml b/kubernetes/dcae/templates/cdap1-dep.yaml index 64f69d32dd..7529777038 100644 --- a/kubernetes/dcae/templates/cdap1-dep.yaml +++ b/kubernetes/dcae/templates/cdap1-dep.yaml @@ -22,22 +22,15 @@ spec: labels: app: cdap1 name: cdap1 - annotations: - pod.beta.kubernetes.io/init-containers: '[ - { - "name": "create-fs", - "image": "{{ .Values.image.cdapfs }}", - "imagePullPolicy": "{{ .Values.pullPolicy }}", - "command": ["/bin/bash", "-c", "mkdir -p /cdap/{cdap1-opt-tools,cdap1-opt-data}; 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/{cdap1-opt-tools,cdap1-opt-data}; 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: zldcprivatecloudtruecdap01 containers: - image: {{ .Values.image.cdap }} @@ -83,4 +76,4 @@ spec: path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/cdap/cdap1-opt-data imagePullSecrets: - name: "{{ .Values.nsPrefix }}-docker-registry-key" -#{{ end }}
\ No newline at end of file +#{{ end }} |