1 # Copyright (c) 2018 AT&T
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: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
38 - {{ .Values.mariadb.nameOverride }}
44 fieldPath: metadata.namespace
45 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 name: {{ include "common.name" . }}-readiness
49 image: "{{ include "common.repository" . }}/{{ .Values.dbinit.image }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 value: {{ .Values.config.db_host }}.{{.Release.Namespace}}
55 value: {{ .Values.config.db_port | quote}}
57 value: {{ .Values.config.db_root }}
59 value: {{ .Values.config.mysqlDatabase }}
63 name: {{ .Release.Name}}-cmso-db
65 terminationMessagePolicy: File
67 - name: {{ include "common.fullname" . }}-config
68 mountPath: /share/etc/config
69 - name: {{ include "common.fullname" . }}-logs
70 mountPath: /share/logs
74 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
75 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
77 - mountPath: /usr/share/filebeat/filebeat.yml
80 - mountPath: /var/log/onap
81 name: {{ include "common.fullname" . }}-logs
82 - mountPath: /usr/share/filebeat/data
83 name: {{ include "common.fullname" . }}-filebeat
85 {{ include "common.resources" . }}
87 image: "{{ .Values.global.pythonRepository }}/{{ .Values.global.pythonImage }}"
88 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
90 - name: {{ include "common.fullname" . }}-config
91 mountPath: /share/etc/config
96 - /share/etc/config/msosimulator.sh
100 {{ include "common.resources" . }}
101 - name: {{ include "common.name" . }}
102 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
103 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
106 value: {{ .Values.config.db_host }}.{{.Release.Namespace}}
108 value: {{ .Values.config.db_port | quote}}
110 value: {{ .Values.config.db_user }}
112 value: {{ .Values.config.mysqlDatabase }}
116 name: {{ .Release.Name}}-cmso-db
118 - name: JAVA_TRUSTSTORE
119 value: /share/etc/certs/{{ .Values.global.truststoreFile }}
121 value: /share/etc/certs/{{ .Values.global.keystoreFile }}
122 - name: JAVA_TRUSTSTORE_PASSWORD
123 value: {{ .Values.global.truststorePassword }}
124 - name: SSL_KEYSTORE_PASSWORD
125 value: {{ .Values.global.keystorePassword }}
126 - name: AUTHENTICATION
127 value: {{ .Values.global.authentication }}
129 - containerPort: {{ .Values.service.internalPort }}
130 # disable liveness probe when breakpoints set in debugger
131 # so K8s doesn't restart unresponsive container
132 {{- if eq .Values.liveness.enabled true }}
135 port: {{ .Values.service.internalPort }}
136 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
137 periodSeconds: {{ .Values.liveness.periodSeconds }}
141 port: {{ .Values.service.internalPort }}
142 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
143 periodSeconds: {{ .Values.readiness.periodSeconds }}
145 - name: {{ include "common.fullname" . }}-logs
146 mountPath: /share/logs
147 - name: {{ include "common.fullname" . }}-logs
148 mountPath: /share/debug-logs
149 - name: {{ include "common.fullname" . }}-config
150 mountPath: /share/etc/config
151 - name: {{ include "common.fullname" . }}-certs
152 mountPath: /share/etc/certs
153 - name: {{ include "common.fullname" . }}-certs
154 mountPath: /opt/app/cmso/src/main/resources/aaf
156 {{ include "common.resources" . | indent 12 }}
157 {{- if .Values.nodeSelector }}
159 {{ toYaml .Values.nodeSelector | indent 10 }}
161 {{- if .Values.affinity }}
163 {{ toYaml .Values.affinity | indent 10 }}
166 - name: {{ include "common.fullname" . }}-config
168 name: {{ include "common.fullname" . }}
172 - key: cmso.properties
173 path: cmso.properties
174 - key: cadi.properties
175 path: cadi.properties
176 - key: optimizer.properties
177 path: optimizer.properties
178 - key: ticketmgt.properties
179 path: ticketmgt.properties
180 - key: liquibase.properties
181 path: liquibase.properties
184 - key: msosimulator.sh
185 path: msosimulator.sh
186 - name: {{ include "common.fullname" . }}-logs
188 - name: {{ include "common.fullname" . }}-filebeat
190 - name: filebeat-conf
192 name: {{ .Release.Name }}-cmso-filebeat-configmap
193 - name: {{ include "common.fullname" . }}-certs
195 secretName: {{ .Release.Name }}-{{ .Values.global.commonConfigPrefix }}-certs
197 - name: "{{ include "common.namespace" . }}-docker-registry-key"