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.
15 apiVersion: extensions/v1beta1
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 }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
34 - name: {{ include "common.name" . }}-readiness
45 fieldPath: metadata.namespace
46 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 - name: {{ include "common.name" . }}-job-completion
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
52 - /root/job_complete.py
55 - {{ include "common.release" . }}-sdc-be-config-backend
61 fieldPath: metadata.namespace
62 - name: {{ include "common.name" . }}-update-config
63 image: "{{ .Values.global.envsubstImage }}"
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 - "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"
74 name: {{ include "common.release" . }}-sdc-cs-secrets
75 key: keystore_password
76 - name: TRUSTSTORE_PASS
79 name: {{ include "common.release" . }}-sdc-cs-secrets
80 key: truststore_password
82 - name: {{ include "common.fullname" . }}-environments
83 mountPath: /config-input/
84 - name: sdc-environments-output
85 mountPath: /config-output/
87 - name: {{ include "common.name" . }}
88 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
89 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
91 - containerPort: {{ .Values.service.internalPort }}
92 - containerPort: {{ .Values.service.internalPort2 }}
93 {{ if eq .Values.liveness.enabled true }}
96 port: {{ .Values.service.internalPort2 }}
97 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
98 periodSeconds: {{ .Values.liveness.periodSeconds }}
102 path: /dcae/conf/composition
103 port: {{ .Values.service.internalPort2 }}
105 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
106 periodSeconds: {{ .Values.readiness.periodSeconds }}
109 value: {{ .Values.global.env.name }}
111 value: {{ .Values.config.javaOptions }}
115 fieldPath: status.podIP
117 - name: sdc-environments-output
118 mountPath: /var/lib/jetty/chef-solo/environments/
120 mountPath: /var/lib/jetty/chef-solo/cookbooks/Deploy-DCAE/files/default/org.onap.sdc.p12
121 subPath: org.onap.sdc.p12
123 mountPath: /var/lib/jetty/chef-solo/cookbooks/Deploy-DCAE/files/default/org.onap.sdc.trust.jks
124 subPath: org.onap.sdc.trust.jks
125 - name: {{ include "common.fullname" . }}-localtime
126 mountPath: /etc/localtime
128 - name: {{ include "common.fullname" . }}-logs
129 mountPath: /var/lib/jetty/logs
130 - name: {{ include "common.fullname" . }}-logback
131 mountPath: /tmp/logback.xml
136 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"]
138 {{ include "common.resources" . | indent 12 }}
139 {{- if .Values.nodeSelector }}
141 {{ toYaml .Values.nodeSelector | indent 10 }}
143 {{- if .Values.affinity }}
145 {{ toYaml .Values.affinity | indent 10 }}
148 # side car containers
149 - name: {{ include "common.name" . }}-filebeat-onap
150 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
151 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
153 - name: {{ include "common.fullname" . }}-filebeat-conf
154 mountPath: /usr/share/filebeat/filebeat.yml
155 subPath: filebeat.yml
156 - name: {{ include "common.fullname" . }}-logs
157 mountPath: /var/log/onap
158 - name: {{ include "common.fullname" . }}-data-filebeat
159 mountPath: /usr/share/filebeat/data
161 - name: {{ include "common.fullname" . }}-localtime
167 - name: {{ include "common.fullname" . }}-filebeat-conf
169 name: {{ include "common.release" . }}-sdc-filebeat-configmap
170 - name: {{ include "common.fullname" . }}-data-filebeat
172 - name: {{ include "common.fullname" . }}-logback
174 name : {{ include "common.fullname" . }}-logging-configmap
175 - name: {{ include "common.fullname" . }}-environments
177 name: {{ include "common.release" . }}-sdc-environments-configmap
179 - name: sdc-environments-output
180 emptyDir: { medium: "Memory" }
181 - name: {{ include "common.fullname" . }}-logs
184 - name: "{{ include "common.namespace" . }}-docker-registry-key"