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
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
48 - name: {{ include "common.name" . }}
49 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 ports: {{ include "common.containerPorts" . | nindent 12 }}
52 {{ if .Values.liveness.enabled }}
55 port: {{ .Values.service.internalPort }}
56 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
57 periodSeconds: {{ .Values.liveness.periodSeconds }}
58 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
62 port: {{ .Values.service.internalPort }}
63 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.readiness.periodSeconds }}
65 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
67 - mountPath: /etc/localtime
70 - mountPath: {{ .Values.persistence.deployedBlueprint }}
71 name: {{ include "common.fullname" . }}-blueprints
72 resources: {{ include "common.resources" . | nindent 12 }}
73 {{- if .Values.nodeSelector }}
75 {{ toYaml .Values.nodeSelector | indent 10 }}
77 {{- if .Values.affinity }}
79 {{ toYaml .Values.affinity | indent 10 }}
81 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
86 - name: {{ include "common.fullname" . }}-blueprints
87 {{- if .Values.persistence.enabled }}
88 persistentVolumeClaim:
89 claimName: {{ include "common.release" . }}-cds-blueprints
94 - name: "{{ include "common.namespace" . }}-docker-registry-key"