1 # Copyright © 2018 Amdocs, AT&T, 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.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
28 app: {{ include "common.name" . }}
29 replicas: {{ .Values.replicaCount }}
33 app: {{ include "common.name" . }}
34 release: {{ include "common.release" . }}
37 - name: {{ include "common.name" . }}-readiness
48 fieldPath: metadata.namespace
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 - name: {{ include "common.name" . }}-job-completion
52 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
55 - /root/job_complete.py
58 - {{ include "common.release" . }}-sdc-be-config-backend
64 fieldPath: metadata.namespace
65 - name: {{ include "common.name" . }}-update-config
66 image: "{{ .Values.global.envsubstImage }}"
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72 - "cd /config-input && for PFILE in `find . -not -type d | grep -v -F ..`; do envsubst <${PFILE} >/config-output/${PFILE}; chmod 0755 /config-output/${PFILE}; done"
77 name: {{ include "common.release" . }}-sdc-cs-secrets
78 key: keystore_password
79 - name: TRUSTSTORE_PASS
82 name: {{ include "common.release" . }}-sdc-cs-secrets
83 key: truststore_password
85 - name: {{ include "common.fullname" . }}-environments
86 mountPath: /config-input/
87 - name: sdc-environments-output
88 mountPath: /config-output/
90 - name: {{ include "common.name" . }}
91 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
92 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
94 - containerPort: {{ .Values.service.internalPort }}
95 - containerPort: {{ .Values.service.internalPort2 }}
96 {{ if eq .Values.liveness.enabled true }}
99 port: {{ .Values.service.internalPort2 }}
100 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
101 periodSeconds: {{ .Values.liveness.periodSeconds }}
105 path: /dcae/conf/composition
106 port: {{ .Values.service.internalPort2 }}
108 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
109 periodSeconds: {{ .Values.readiness.periodSeconds }}
112 value: {{ .Values.global.env.name }}
114 value: {{ .Values.config.javaOptions }}
118 fieldPath: status.podIP
120 - name: sdc-environments-output
121 mountPath: /var/lib/jetty/chef-solo/environments/
123 mountPath: /var/lib/jetty/chef-solo/cookbooks/Deploy-DCAE/files/default/org.onap.sdc.p12
124 subPath: org.onap.sdc.p12
126 mountPath: /var/lib/jetty/chef-solo/cookbooks/Deploy-DCAE/files/default/org.onap.sdc.trust.jks
127 subPath: org.onap.sdc.trust.jks
128 - name: {{ include "common.fullname" . }}-localtime
129 mountPath: /etc/localtime
131 - name: {{ include "common.fullname" . }}-logs
132 mountPath: /var/lib/jetty/logs
133 - name: {{ include "common.fullname" . }}-logback
134 mountPath: /tmp/logback.xml
139 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/dcae-be/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
141 {{ include "common.resources" . | indent 12 }}
142 {{- if .Values.nodeSelector }}
144 {{ toYaml .Values.nodeSelector | indent 10 }}
146 {{- if .Values.affinity }}
148 {{ toYaml .Values.affinity | indent 10 }}
151 # side car containers
152 - name: {{ include "common.name" . }}-filebeat-onap
153 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
154 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
156 - name: {{ include "common.fullname" . }}-filebeat-conf
157 mountPath: /usr/share/filebeat/filebeat.yml
158 subPath: filebeat.yml
159 - name: {{ include "common.fullname" . }}-logs
160 mountPath: /var/log/onap
161 - name: {{ include "common.fullname" . }}-data-filebeat
162 mountPath: /usr/share/filebeat/data
164 - name: {{ include "common.fullname" . }}-localtime
170 - name: {{ include "common.fullname" . }}-filebeat-conf
172 name: {{ include "common.release" . }}-sdc-filebeat-configmap
173 - name: {{ include "common.fullname" . }}-data-filebeat
175 - name: {{ include "common.fullname" . }}-logback
177 name : {{ include "common.fullname" . }}-logging-configmap
178 - name: {{ include "common.fullname" . }}-environments
180 name: {{ include "common.release" . }}-sdc-environments-configmap
182 - name: sdc-environments-output
183 emptyDir: { medium: "Memory" }
184 - name: {{ include "common.fullname" . }}-logs
187 - name: "{{ include "common.namespace" . }}-docker-registry-key"