2 # Copyright © 2018 Orange
3 # Modifications Copyright © 2018 Amdocs, Bell Canada
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.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
31 app: {{ include "common.name" . }}
32 replicas: {{ .Values.replicaCount }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
38 name: {{ include "common.fullname" . }}
40 {{- if .Values.global.aafEnabled }}
41 initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
44 - name: {{ include "common.name" . }}
45 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 - containerPort: {{ .Values.service.internalPort }}
49 # disable liveness probe when breakpoints set in debugger
50 # so K8s doesn't restart unresponsive container
51 {{ if .Values.liveness.enabled }}
54 port: {{ .Values.service.internalPort }}
55 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
56 periodSeconds: {{ .Values.liveness.periodSeconds }}
61 - name: APP_ACTION_DEPLOY_BLUEPRINT_GRPC_ENABLED
62 value: "{{ .Values.config.app.action.deployBlueprint.grpcEnabled }}"
63 - name: API_BLUEPRINT_CONTROLLER_HTTP_BASE_URL
64 value: {{ .Values.config.api.controller.http.baseUrl }}
65 - name: API_BLUEPRINT_CONTROLLER_HTTP_AUTH_TOKEN
66 value: {{ .Values.config.api.controller.http.authToken }}
67 - name: API_BLUEPRINT_PROCESSOR_HTTP_BASE_URL
68 value: {{ .Values.config.api.processor.http.baseUrl }}
69 - name: API_BLUEPRINT_PROCESSOR_HTTP_AUTH_TOKEN
70 value: {{ .Values.config.api.processor.http.authToken }}
71 - name: API_BLUEPRINT_PROCESSOR_GRPC_HOST
72 value: {{ .Values.config.api.processor.grpc.host }}
73 - name: API_BLUEPRINT_PROCESSOR_GRPC_PORT
74 value: "{{ .Values.config.api.processor.grpc.port }}"
75 - name: API_BLUEPRINT_PROCESSOR_GRPC_AUTH_TOKEN
76 value: {{ .Values.config.api.processor.grpc.authToken }}
77 {{- if .Values.global.aafEnabled }}
79 value: "{{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.p12"
81 value: "{{ .Values.certInitializer.credsPath }}/mycreds.prop"
85 port: {{ .Values.service.internalPort }}
86 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
87 periodSeconds: {{ .Values.readiness.periodSeconds }}
88 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 12 }}
89 - mountPath: /etc/localtime
93 {{ include "common.resources" . | indent 12 }}
94 {{- if .Values.nodeSelector }}
96 {{ toYaml .Values.nodeSelector | indent 10 }}
98 {{- if .Values.affinity }}
100 {{ toYaml .Values.affinity | indent 10 }}
102 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
103 volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
108 - name: "{{ include "common.namespace" . }}-docker-registry-key"