1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #{{ if not .Values.disableDcaeCdap }}
16 apiVersion: extensions/v1beta1
20 deployment.kubernetes.io/revision: "1"
24 namespace: "{{ .Values.nsPrefix }}"
41 - 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"]
43 image: {{ .Values.image.cdapfs }}
44 imagePullPolicy: {{ .Values.pullPolicy }}
48 hostname: zldcprivatecloudtruecdap01
50 - image: {{ .Values.image.cdap }}
51 imagePullPolicy: {{ .Values.pullPolicy }}
52 command: ["/bin/bash"]
53 args: ["-c", "cat /cdap/pod-ip/* >> /etc/hosts; /usr/local/bin/01-entrypoint.sh; sleep infinity;"]
60 - containerPort: 50070
62 - containerPort: 50075
64 - containerPort: 50010
66 - containerPort: 50020
77 - mountPath: /opt/tools
78 name: dcae-cdap1-opt-tools
79 - mountPath: /opt/data
80 name: dcae-cdap1-opt-data
84 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/cdap
85 - name: dcae-cdap1-opt-tools
87 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/cdap/cdap1-opt-tools
88 - name: dcae-cdap1-opt-data
90 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/cdap/cdap1-opt-data
92 - name: "{{ .Values.nsPrefix }}-docker-registry-key"