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" . }}
41 - name: {{ include "common.name" . }}
42 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
43 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
45 - containerPort: {{ .Values.service.internalPort }}
46 # disable liveness probe when breakpoints set in debugger
47 # so K8s doesn't restart unresponsive container
48 {{ if .Values.liveness.enabled }}
51 port: {{ .Values.service.internalPort }}
52 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
53 periodSeconds: {{ .Values.liveness.periodSeconds }}
57 port: {{ .Values.service.internalPort }}
58 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
59 periodSeconds: {{ .Values.readiness.periodSeconds }}
62 value: /opt/app/babel/config
63 - name: KEY_STORE_PASSWORD
66 name: {{ template "common.fullname" . }}-pass
67 key: KEY_STORE_PASSWORD
68 - name: KEY_MANAGER_PASSWORD
71 name: {{ template "common.fullname" . }}-pass
72 key: KEY_MANAGER_PASSWORD
74 - mountPath: /etc/localtime
77 - mountPath: /opt/app/babel/config/artifact-generator.properties
78 name: {{ include "common.fullname" . }}-config
79 subPath: artifact-generator.properties
80 - mountPath: /opt/app/babel/config/tosca-mappings.json
81 name: {{ include "common.fullname" . }}-config
82 subPath: tosca-mappings.json
83 - mountPath: /opt/app/babel/config/babel-auth.properties
84 name: {{ include "common.fullname" . }}-config
85 subPath: babel-auth.properties
86 - mountPath: /opt/app/babel/config/auth
87 name: {{ include "common.fullname" . }}-secrets
88 - mountPath: /var/log/onap
89 name: {{ include "common.fullname" . }}-logs
90 - mountPath: /opt/app/babel/config/logback.xml
91 name: {{ include "common.fullname" . }}-config
94 {{ include "common.resources" . }}
95 {{- if .Values.nodeSelector }}
97 {{ toYaml .Values.nodeSelector | indent 8 }}
99 {{- if .Values.affinity }}
101 {{ toYaml .Values.affinity | indent 8 }}
104 # side car containers
105 - name: filebeat-onap
106 image: {{ include "repositoryGenerator.image.logging" . }}
107 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
109 - mountPath: /usr/share/filebeat/filebeat.yml
110 subPath: filebeat.yml
112 - mountPath: /var/log/onap
113 name: {{ include "common.fullname" . }}-logs
114 - mountPath: /usr/share/filebeat/data
121 - name: {{ include "common.fullname" . }}-config
123 name: {{ include "common.fullname" . }}-configmap
125 - key: artifact-generator.properties
126 path: artifact-generator.properties
127 - key: tosca-mappings.json
128 path: tosca-mappings.json
129 - key: babel-auth.properties
130 path: babel-auth.properties
133 - name: {{ include "common.fullname" . }}-secrets
135 secretName: {{ include "common.fullname" . }}-babel-secrets
136 - name: filebeat-conf
139 - name: {{ include "common.fullname" . }}-logs
145 - name: "{{ include "common.namespace" . }}-docker-registry-key"