2 # Copyright (c) 2017 Amdocs, Bell Canada
3 # Modifications Copyright (c) 2018 AT&T
4 # Modifications Copyright (c) 2020 Nokia
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 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
28 release: {{ include "common.release" . }}
29 heritage: {{ .Release.Service }}
31 replicas: {{ .Values.replicaCount }}
33 type: {{ .Values.updateStrategy.type }}
34 {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }}
36 maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }}
37 maxSurge: {{ .Values.updateStrategy.maxSurge }}
41 app: {{ include "common.name" . }}
45 sidecar.istio.io/rewriteAppHTTPProbers: "false"
47 app: {{ include "common.name" . }}
48 release: {{ include "common.release" . }}
49 name: {{ include "common.name" . }}
62 fieldPath: metadata.namespace
63 image: {{ include "repositoryGenerator.image.readiness" . }}
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 name: {{ include "common.name" . }}-readiness
67 - name: {{ include "common.name" . }}
68 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
69 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 echo "*** actual launch of AAI Sparky BE"
76 /opt/app/sparky/bin/start.sh
78 - mountPath: /etc/localtime
81 - mountPath: {{ .Values.log.path }}
83 - mountPath: /opt/app/sparky/config/application.properties
85 subPath: application.properties
86 - mountPath: /opt/app/sparky/config/application-resources.properties
88 subPath: application-resources.properties
89 - mountPath: /opt/app/sparky/config/application-ssl.properties
91 subPath: application-ssl.properties
92 - mountPath: /opt/app/sparky/config/application-oxm-default.properties
94 subPath: application-oxm-default.properties
95 - mountPath: /opt/app/sparky/config/application-oxm-override.properties
97 subPath: application-oxm-override.properties
98 - mountPath: /opt/app/sparky/config/application-oxm-schema-prod.properties
100 subPath: application-oxm-schema-prod.properties
101 - mountPath: /opt/app/sparky/config/roles.config
103 subPath: roles.config
104 - mountPath: /opt/app/sparky/config/users.config
106 subPath: users.config
107 - mountPath: /opt/app/sparky/config/logging/logback.xml
111 - containerPort: {{ .Values.service.internalPort }}
112 - containerPort: {{ .Values.service.internalPlainPort }}
113 # disable liveness probe when breakpoints set in debugger
114 # so K8s doesn't restart unresponsive container
115 {{- if eq .Values.liveness.enabled true }}
118 port: {{ .Values.service.internalPlainPort }}
119 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
120 periodSeconds: {{ .Values.liveness.periodSeconds }}
124 port: {{ .Values.service.internalPlainPort }}
125 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
126 periodSeconds: {{ .Values.readiness.periodSeconds }}
127 resources: {{ include "common.resources" . | nindent 10 }}
128 {{- if .Values.nodeSelector }}
130 {{ toYaml .Values.nodeSelector | indent 8 }}
132 {{- if .Values.affinity }}
134 {{ toYaml .Values.affinity | indent 8 }}
137 # side car containers
138 {{ include "common.log.sidecar" . | nindent 6 }}
139 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
146 name: {{ include "common.fullname" . }}
149 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
152 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
154 - name: "{{ include "common.namespace" . }}-docker-registry-key"