2 # Copyright (c) 2019 Bell Canada
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ .Values.replicaCount }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
31 - cds-blueprints-processor-http
37 fieldPath: metadata.namespace
38 {{- if .Values.metrics.serviceMonitor.enabled }}
39 - name: PROMETHEUS_METRICS_ENABLED
40 value: {{ .Values.metrics.serviceMonitor.enabled | quote }}
41 - name: PROMETHEUS_PORT
42 value: {{ .Values.metrics.serviceMonitor.internalPort | quote }}
44 image: {{ include "repositoryGenerator.image.readiness" . }}
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
46 name: {{ include "common.name" . }}-readiness
55 - name: {{ include "common.name" . }}
56 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 ports: {{ include "common.containerPorts" . | nindent 12 }}
59 {{ if .Values.liveness.enabled }}
62 port: {{ .Values.service.internalPort }}
63 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.liveness.periodSeconds }}
65 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.readiness.periodSeconds }}
72 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
74 - mountPath: /etc/localtime
77 - mountPath: {{ .Values.persistence.deployedBlueprint }}
78 name: {{ include "common.fullname" . }}-blueprints
79 resources: {{ include "common.resources" . | nindent 12 }}
80 {{- if .Values.nodeSelector }}
82 {{ toYaml .Values.nodeSelector | indent 10 }}
84 {{- if .Values.affinity }}
86 {{ toYaml .Values.affinity | indent 10 }}
88 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
93 - name: {{ include "common.fullname" . }}-blueprints
94 {{- if .Values.persistence.enabled }}
95 persistentVolumeClaim:
96 claimName: {{ include "common.release" . }}-cds-blueprints
100 {{- include "common.imagePullSecrets" . | nindent 6 }}