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: "{{ include "common.repository" . }}/{{ .Values.robotimage }}"
88 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
90 - name: {{ include "common.fullname" . }}-config
91 mountPath: /share/etc/config
95 {{ include "common.resources" . }}
96 - name: {{ include "common.name" . }}
97 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
98 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
101 value: {{ .Values.config.db_host }}.{{.Release.Namespace}}
103 value: {{ .Values.config.db_port | quote}}
105 value: {{ .Values.config.db_user }}
107 value: {{ .Values.config.mysqlDatabase }}
111 name: {{ .Release.Name}}-cmso-db
113 - name: JAVA_TRUSTSTORE
114 value: /share/etc/certs/{{ .Values.global.truststoreFile }}
116 value: /share/etc/certs/{{ .Values.global.keystoreFile }}
117 - name: JAVA_TRUSTSTORE_PASSWORD
118 value: {{ .Values.global.truststorePassword }}
119 - name: SSL_KEYSTORE_PASSWORD
120 value: {{ .Values.global.keystorePassword }}
121 - name: AUTHENTICATION
122 value: {{ .Values.global.authentication }}
124 - containerPort: {{ .Values.service.internalPort }}
125 # disable liveness probe when breakpoints set in debugger
126 # so K8s doesn't restart unresponsive container
127 {{- if eq .Values.liveness.enabled true }}
130 port: {{ .Values.service.internalPort }}
131 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
132 periodSeconds: {{ .Values.liveness.periodSeconds }}
136 port: {{ .Values.service.internalPort }}
137 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
138 periodSeconds: {{ .Values.readiness.periodSeconds }}
140 - name: {{ include "common.fullname" . }}-logs
141 mountPath: /share/logs
142 - name: {{ include "common.fullname" . }}-logs
143 mountPath: /share/debug-logs
144 - name: {{ include "common.fullname" . }}-config
145 mountPath: /share/etc/config
146 - name: {{ include "common.fullname" . }}-certs
147 mountPath: /share/etc/certs
148 - name: {{ include "common.fullname" . }}-certs
149 mountPath: /opt/app/cmso/src/main/resources/aaf
151 {{ include "common.resources" . | indent 12 }}
152 {{- if .Values.nodeSelector }}
154 {{ toYaml .Values.nodeSelector | indent 10 }}
156 {{- if .Values.affinity }}
158 {{ toYaml .Values.affinity | indent 10 }}
161 - name: {{ include "common.fullname" . }}-config
163 name: {{ include "common.fullname" . }}
167 - key: cmso.properties
168 path: cmso.properties
169 - key: cadi.properties
170 path: cadi.properties
171 - key: optimizer.properties
172 path: optimizer.properties
173 - key: ticketmgt.properties
174 path: ticketmgt.properties
175 - key: liquibase.properties
176 path: liquibase.properties
177 - name: {{ include "common.fullname" . }}-logs
179 - name: {{ include "common.fullname" . }}-filebeat
181 - name: filebeat-conf
183 name: {{ .Release.Name }}-cmso-filebeat-configmap
184 - name: {{ include "common.fullname" . }}-certs
186 secretName: {{ .Release.Name }}-{{ .Values.global.commonConfigPrefix }}-certs
188 - name: "{{ include "common.namespace" . }}-docker-registry-key"