2 # Copyright © 2018 Amdocs, AT&T
3 # Modifications Copyright © 2018 Bell Canada
4 # Modifications Copyright © 2020,2021 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 }}
32 app: {{ include "common.name" . }}
33 replicas: {{ .Values.replicaCount }}
37 app: {{ include "common.name" . }}
38 release: {{ include "common.release" . }}
40 initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
42 - name: {{ include "common.name" . }}
43 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
45 {{- if .Values.global.aafEnabled }}
51 echo "*** retrieve Truststore and Keystore password"
52 export $(cat {{ .Values.certInitializer.credsPath }}/mycreds.prop | xargs -0)
53 echo "*** actual launch of AAI Babel"
54 /bin/bash /opt/app/babel/bin/start.sh
57 - containerPort: {{ .Values.service.internalPort }}
58 # disable liveness probe when breakpoints set in debugger
59 # so K8s doesn't restart unresponsive container
60 {{ if .Values.liveness.enabled }}
63 port: {{ .Values.service.internalPort }}
64 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
65 periodSeconds: {{ .Values.liveness.periodSeconds }}
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.readiness.periodSeconds }}
73 {{- if not (include "common.needTLS" .) }}
74 - name: KEY_STORE_PASSWORD
78 value: /opt/app/babel/config
79 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
80 - mountPath: /etc/localtime
83 - mountPath: /opt/app/babel/config/application.properties
85 subPath: application.properties
86 - mountPath: /opt/app/babel/config/artifact-generator.properties
88 subPath: artifact-generator.properties
89 - mountPath: /opt/app/babel/config/tosca-mappings.json
91 subPath: tosca-mappings.json
92 - mountPath: /opt/app/babel/config/babel-auth.properties
94 subPath: babel-auth.properties
95 - mountPath: /opt/app/babel/config/auth
97 - mountPath: {{ .Values.log.path }}
99 - mountPath: /opt/app/babel/config/logback.xml
103 {{ include "common.resources" . }}
104 {{- if .Values.nodeSelector }}
106 {{ toYaml .Values.nodeSelector | indent 8 }}
108 {{- if .Values.affinity }}
110 {{ toYaml .Values.affinity | indent 8 }}
113 # side car containers
114 {{ include "common.log.sidecar" . | nindent 8 }}
115 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
116 volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
122 name: {{ include "common.fullname" . }}-configmap
125 secretName: {{ include "common.fullname" . }}-babel-secrets
128 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 8 }}
131 - name: "{{ include "common.namespace" . }}-docker-registry-key"