1 # Copyright (c) 2019 Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
28 app: {{ include "common.name" . }}
29 replicas: {{ .Values.replicaCount }}
33 app: {{ include "common.name" . }}
34 release: {{ include "common.release" . }}
45 - cds-blueprints-processor
51 fieldPath: metadata.namespace
52 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-readiness
56 - name: {{ include "common.name" . }}
57 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 - name: APP_CONFIG_HOME
61 value: {{ .Values.config.appConfigDir }}
63 - containerPort: {{ .Values.service.http.internalPort }}
64 {{ if .Values.liveness.enabled }}
67 path: /api/v1/sdclistener/healthcheck
68 port: {{ .Values.service.http.internalPort }}
69 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
70 periodSeconds: {{ .Values.liveness.periodSeconds }}
74 path: /api/v1/sdclistener/healthcheck
75 port: {{ .Values.service.http.internalPort }}
76 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
77 periodSeconds: {{ .Values.readiness.periodSeconds }}
79 - mountPath: {{ .Values.config.appConfigDir }}/application.yaml
80 name: {{ include "common.fullname" . }}-config
81 subPath: application.yaml
82 - mountPath: {{ .Values.config.appConfigDir }}/logback.xml
83 name: {{ include "common.fullname" . }}-config
86 {{ include "common.resources" . | indent 12 }}
87 {{- if .Values.nodeSelector }}
89 {{ toYaml .Values.nodeSelector | indent 10 }}
91 {{- if .Values.affinity }}
93 {{ toYaml .Values.affinity | indent 10 }}
96 - name: {{ include "common.fullname" . }}-config
98 name: {{ include "common.fullname" . }}-configmap
100 - key: application.yaml
101 path: application.yaml
105 - name: {{ include "common.namespace" . }}-docker-registry-key