1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
3 # Modifications Copyright © 2020 Orange
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
37 name: {{ include "common.name" . }}
39 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
42 - name: {{ include "common.name" . }}
43 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 value: {{ .Values.global.config.userId | quote }}
48 - name: LOCAL_GROUP_ID
49 value: {{ .Values.global.config.groupId | quote }}
51 - mountPath: /etc/localtime
54 - mountPath: /opt/app/aai-schema-service/resources/etc/appprops/aaiconfig.properties
56 subPath: aaiconfig.properties
57 - mountPath: /opt/aai/logroot/AAI-SS
58 name: {{ include "common.fullname" . }}-logs
59 - mountPath: /opt/app/aai-schema-service/resources/logback.xml
60 name: {{ include "common.fullname" . }}-log-conf
62 - mountPath: /opt/app/aai-schema-service/resources/localhost-access-logback.xml
63 name: localhost-access-log-conf
64 subPath: localhost-access-logback.xml
65 - mountPath: /opt/app/aai-schema-service/resources/etc/auth/realm.properties
67 subPath: realm.properties
68 - mountPath: /opt/app/aai-schema-service/resources/application.properties
70 subPath: application.properties
72 {{ range $job := .Values.global.config.auth.files }}
73 - mountPath: /opt/app/aai-schema-service/resources/etc/auth/{{ . }}
74 name: auth-truststore-sec
78 - containerPort: {{ .Values.service.internalPort }}
79 - containerPort: {{ .Values.service.internalPort2 }}
80 # disable liveness probe when breakpoints set in debugger
81 # so K8s doesn't restart unresponsive container
82 {{ if .Values.liveness.enabled }}
85 port: {{ .Values.service.internalPort }}
86 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
87 periodSeconds: {{ .Values.liveness.periodSeconds }}
91 port: {{ .Values.service.internalPort }}
92 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
93 periodSeconds: {{ .Values.readiness.periodSeconds }}
95 {{ include "common.resources" . | indent 12 }}
96 {{- if .Values.nodeSelector }}
98 {{ toYaml .Values.nodeSelector | indent 8 }}
100 {{- if .Values.affinity }}
102 {{ toYaml .Values.affinity | indent 8 }}
105 # side car containers
106 - name: filebeat-onap
107 image: {{ include "repositoryGenerator.image.logging" . }}
108 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
110 - mountPath: /usr/share/filebeat/filebeat.yml
111 subPath: filebeat.yml
113 - mountPath: /var/log/onap
114 name: {{ include "common.fullname" . }}-logs
115 - mountPath: /usr/share/filebeat/data
116 name: {{ include "common.fullname" . }}-filebeat
118 - name: aai-common-aai-auth-mount
120 secretName: aai-common-aai-auth
124 - name: filebeat-conf
127 - name: {{ include "common.fullname" . }}-logs
129 - name: {{ include "common.fullname" . }}-filebeat
131 - name: {{ include "common.fullname" . }}-log-conf
133 name: {{ include "common.fullname" . }}-log
134 - name: localhost-access-log-conf
136 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
137 - name: springapp-conf
139 name: {{ include "common.fullname" . }}-springapp-configmap
140 - name: aaiconfig-conf
142 name: {{ include "common.fullname" . }}-aaiconfig-configmap
145 name: {{ include "common.fullname" . }}-realm-configmap
146 - name: auth-truststore-sec
148 secretName: aai-common-truststore
150 {{ range $job := .Values.global.config.auth.files }}
154 restartPolicy: {{ .Values.restartPolicy }}
156 - name: "{{ include "common.namespace" . }}-docker-registry-key"