2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T
4 # Modifications Copyright © 2020 Orange
5 # Modifications Copyright © 2023 Nordix Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 app: {{ include "common.name" . }}
27 app.kubernetes.io/name: {{ include "common.name" . }}
28 {{- if .Chart.AppVersion }}
29 version: "{{ .Chart.AppVersion | replace "+" "_" }}"
31 version: "{{ .Chart.Version | replace "+" "_" }}"
33 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
34 release: {{ include "common.release" . }}
35 heritage: {{ .Release.Service }}
37 replicas: {{ .Values.replicaCount }}
39 type: {{ .Values.updateStrategy.type }}
40 {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }}
42 maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }}
43 maxSurge: {{ .Values.updateStrategy.maxSurge }}
47 app: {{ include "common.name" . }}
51 app: {{ include "common.name" . }}
52 release: {{ include "common.release" . }}
53 app.kubernetes.io/name: {{ include "common.name" . }}
54 {{- if .Chart.AppVersion }}
55 version: "{{ .Chart.AppVersion | replace "+" "_" }}"
57 version: "{{ .Chart.Version | replace "+" "_" }}"
59 name: {{ include "common.name" . }}
61 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
64 - name: {{ include "common.name" . }}
65 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 value: {{ .Values.securityContext.user_id | quote }}
70 - name: LOCAL_GROUP_ID
71 value: {{ .Values.securityContext.group_id | quote }}
73 - mountPath: /etc/localtime
76 - mountPath: /opt/app/aai-schema-service/resources/etc/appprops/aaiconfig.properties
78 subPath: aaiconfig.properties
79 - mountPath: /opt/aai/logroot/AAI-SS
81 - mountPath: /opt/app/aai-schema-service/resources/logback.xml
84 - mountPath: /opt/app/aai-schema-service/resources/localhost-access-logback.xml
85 name: localhost-access-log-conf
86 subPath: localhost-access-logback.xml
87 - mountPath: /opt/app/aai-schema-service/resources/etc/auth/realm.properties
89 subPath: realm.properties
90 - mountPath: /opt/app/aai-schema-service/resources/application.properties
92 subPath: application.properties
94 - containerPort: {{ .Values.service.internalPort }}
95 name: {{ .Values.service.portName }}
96 - containerPort: {{ .Values.service.internalPort2 }}
97 name: {{ .Values.service.portName2 }}
98 # disable liveness probe when breakpoints set in debugger
99 # so K8s doesn't restart unresponsive container
100 {{ if .Values.liveness.enabled }}
103 port: {{ .Values.service.internalPort }}
104 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
105 periodSeconds: {{ .Values.liveness.periodSeconds }}
109 port: {{ .Values.service.internalPort }}
110 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
111 periodSeconds: {{ .Values.readiness.periodSeconds }}
112 resources: {{ include "common.resources" . | nindent 10 }}
113 {{- if .Values.nodeSelector }}
115 {{ toYaml .Values.nodeSelector | indent 8 }}
117 {{- if .Values.affinity }}
119 {{ toYaml .Values.affinity | indent 8 }}
122 # side car containers
123 {{ include "common.log.sidecar" . | nindent 6 }}
124 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
126 - name: aai-common-aai-auth-mount
128 secretName: aai-common-aai-auth
134 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
137 name: {{ include "common.fullname" . }}-log
138 - name: localhost-access-log-conf
140 name: {{ include "common.fullname" . }}-localhost-access-log
141 - name: springapp-conf
143 name: {{ include "common.fullname" . }}-springapp
144 - name: aaiconfig-conf
146 name: {{ include "common.fullname" . }}-aaiconfig
149 name: {{ include "common.fullname" . }}-realm
150 restartPolicy: {{ .Values.restartPolicy }}
152 - name: "{{ include "common.namespace" . }}-docker-registry-key"