2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T
4 # Modifications Copyright © 2020 Orange
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 app: {{ include "common.name" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ include "common.release" . }}
28 heritage: {{ .Release.Service }}
30 replicas: {{ .Values.replicaCount }}
33 app: {{ include "common.name" . }}
37 app: {{ include "common.name" . }}
38 release: {{ include "common.release" . }}
39 name: {{ include "common.name" . }}
41 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
44 - name: {{ include "common.name" . }}
45 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 value: {{ .Values.global.config.userId | quote }}
50 - name: LOCAL_GROUP_ID
51 value: {{ .Values.global.config.groupId | quote }}
53 - mountPath: /etc/localtime
56 - mountPath: /opt/app/aai-schema-service/resources/etc/appprops/aaiconfig.properties
58 subPath: aaiconfig.properties
59 - mountPath: /opt/aai/logroot/AAI-SS
60 name: {{ include "common.fullname" . }}-logs
61 - mountPath: /opt/app/aai-schema-service/resources/logback.xml
62 name: {{ include "common.fullname" . }}-log-conf
64 - mountPath: /opt/app/aai-schema-service/resources/localhost-access-logback.xml
65 name: localhost-access-log-conf
66 subPath: localhost-access-logback.xml
67 - mountPath: /opt/app/aai-schema-service/resources/etc/auth/realm.properties
69 subPath: realm.properties
70 - mountPath: /opt/app/aai-schema-service/resources/application.properties
72 subPath: application.properties
74 {{ range $job := .Values.global.config.auth.files }}
75 - mountPath: /opt/app/aai-schema-service/resources/etc/auth/{{ . }}
76 name: auth-truststore-sec
80 - containerPort: {{ .Values.service.internalPort }}
81 - containerPort: {{ .Values.service.internalPort2 }}
82 # disable liveness probe when breakpoints set in debugger
83 # so K8s doesn't restart unresponsive container
84 {{ if .Values.liveness.enabled }}
87 port: {{ .Values.service.internalPort }}
88 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
89 periodSeconds: {{ .Values.liveness.periodSeconds }}
93 port: {{ .Values.service.internalPort }}
94 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
95 periodSeconds: {{ .Values.readiness.periodSeconds }}
97 {{ include "common.resources" . | indent 12 }}
98 {{- if .Values.nodeSelector }}
100 {{ toYaml .Values.nodeSelector | indent 8 }}
102 {{- if .Values.affinity }}
104 {{ toYaml .Values.affinity | indent 8 }}
107 # side car containers
108 - name: filebeat-onap
109 image: {{ include "repositoryGenerator.image.logging" . }}
110 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
112 - mountPath: /usr/share/filebeat/filebeat.yml
113 subPath: filebeat.yml
115 - mountPath: /var/log/onap
116 name: {{ include "common.fullname" . }}-logs
117 - mountPath: /usr/share/filebeat/data
118 name: {{ include "common.fullname" . }}-filebeat
119 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
121 - name: aai-common-aai-auth-mount
123 secretName: aai-common-aai-auth
127 - name: filebeat-conf
130 - name: {{ include "common.fullname" . }}-logs
132 - name: {{ include "common.fullname" . }}-filebeat
134 - name: {{ include "common.fullname" . }}-log-conf
136 name: {{ include "common.fullname" . }}-log
137 - name: localhost-access-log-conf
139 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
140 - name: springapp-conf
142 name: {{ include "common.fullname" . }}-springapp-configmap
143 - name: aaiconfig-conf
145 name: {{ include "common.fullname" . }}-aaiconfig-configmap
148 name: {{ include "common.fullname" . }}-realm-configmap
149 - name: auth-truststore-sec
151 secretName: aai-common-truststore
153 {{ range $job := .Values.global.config.auth.files }}
157 restartPolicy: {{ .Values.restartPolicy }}
159 - name: "{{ include "common.namespace" . }}-docker-registry-key"