1 # Copyright © 2018 AT&T USA
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.
14 apiVersion: extensions/v1beta1
17 name: {{ include "common.fullname" . }}
18 namespace: {{ include "common.namespace" . }}
20 app: {{ include "common.fullname" . }}
21 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
22 release: {{ include "common.release" . }}
24 replicas: {{ index .Values.replicaCount }}
25 minReadySeconds: {{ index .Values.minReadySeconds }}
27 type: {{ index .Values.updateStrategy.type }}
29 maxUnavailable: {{ index .Values.updateStrategy.maxUnavailable }}
30 maxSurge: {{ index .Values.updateStrategy.maxSurge }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
39 - /root/job_complete.py
42 - {{ include "common.release" . }}-so-mariadb-config-job
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" . }}-readiness
53 - name: {{ include "common.name" . }}
54 image: {{ include "common.repository" . }}/{{ .Values.image }}
56 {{ include "common.resources" . | indent 12 }}
61 name: {{ include "common.release" . }}-so-db-secrets
62 key: mariadb.readwrite.host
66 name: {{ include "common.release" . }}-so-db-secrets
67 key: mariadb.readwrite.port
71 name: {{ include "common.release" . }}-so-db-secrets
72 key: mariadb.readwrite.rolename
76 name: {{ include "common.release" . }}-so-db-secrets
77 key: mariadb.readwrite.password
78 - name: DB_ADMIN_USERNAME
81 name: {{ include "common.release" . }}-so-db-secrets
82 key: mariadb.admin.rolename
83 - name: DB_ADMIN_PASSWORD
86 name: {{ include "common.release" . }}-so-db-secrets
87 key: mariadb.admin.password
88 {{- if eq .Values.global.security.aaf.enabled true }}
90 value: /app/org.onap.so.trust.jks
91 - name: TRUSTSTORE_PASSWORD
94 name: {{ .Release.Name}}-so-client-certs-secret
95 key: trustStorePassword
97 value: /app/org.onap.so.jks
98 - name: KEYSTORE_PASSWORD
101 name: {{ .Release.Name}}-so-client-certs-secret
102 key: keyStorePassword
106 name: {{ include "common.fullname" . }}-configmap
107 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
112 mountPath: /app/config
114 - name: {{ include "common.fullname" . }}-logs
115 mountPath: /var/log/onap
116 {{ include "helpers.livenessProbe" .| indent 8 }}
118 - containerPort: {{ index .Values.containerPort }}
119 name: {{ .Values.service.portName }}
121 # Filebeat sidecar container
122 - name: {{ include "common.name" . }}-filebeat-onap
123 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
124 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
126 - name: {{ include "common.fullname" . }}-filebeat-conf
127 mountPath: /usr/share/filebeat/filebeat.yml
128 subPath: filebeat.yml
129 - name: {{ include "common.fullname" . }}-data-filebeat
130 mountPath: /usr/share/filebeat/data
132 mountPath: /var/log/onap/so
133 - name: {{ include "common.fullname" . }}-logs
134 mountPath: /var/log/onap
140 name: {{ include "common.fullname" . }}-app-configmap
141 - name: {{ include "common.fullname" . }}-log-conf
143 name: {{ include "common.fullname" . }}-log
144 - name: {{ include "common.fullname" . }}-filebeat-conf
146 name: {{ .Release.Name }}-so-filebeat-configmap
147 - name: {{ include "common.fullname" . }}-data-filebeat
149 - name: {{ include "common.fullname" . }}-logs
152 - name: "{{ include "common.namespace" . }}-docker-registry-key"