blob: 0a1525c2803c8e6fafea398998322fcc80019a6f [file] [log] [blame]
vaibhava6cc26f2018-04-09 07:03:53 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
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
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
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.
14
Jakub Latusek7b192902020-10-12 11:53:53 +000015apiVersion: apps/v1
vaibhava6cc26f2018-04-09 07:03:53 +000016kind: Deployment
17metadata:
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
20 labels:
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010023 release: {{ include "common.release" . }}
vaibhava6cc26f2018-04-09 07:03:53 +000024 heritage: {{ .Release.Service }}
25spec:
26 replicas: {{ .Values.replicaCount }}
Jakub Latusek7b192902020-10-12 11:53:53 +000027 selector:
28 matchLabels:
29 app: {{ include "common.name" . }}
30 release: {{ include "common.release" . }}
vaibhava6cc26f2018-04-09 07:03:53 +000031 template:
32 metadata:
33 labels:
34 app: {{ include "common.name" . }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010035 release: {{ include "common.release" . }}
vaibhava6cc26f2018-04-09 07:03:53 +000036 spec:
37 containers:
38 - name: {{ include "common.name" . }}
39 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
41 ports:
42 - containerPort: {{ .Values.service.internalPort }}
43 {{ if .Values.liveness.enabled }}
44 livenessProbe:
45 tcpSocket:
46 port: {{ .Values.service.internalPort }}
47 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
48 periodSeconds: {{ .Values.liveness.periodSeconds }}
49 {{ end }}
50 readinessProbe:
51 tcpSocket:
52 port: {{ .Values.service.internalPort }}
53 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
54 periodSeconds: {{ .Values.readiness.periodSeconds }}
55 resources:
Mandeep Khinda5e3f36a2018-09-24 15:25:42 +000056{{ include "common.resources" . | indent 12 }}
vaibhava6cc26f2018-04-09 07:03:53 +000057 {{- if .Values.nodeSelector }}
58 nodeSelector:
59{{ toYaml .Values.nodeSelector | indent 10 }}
60 {{- end -}}
61 {{- if .Values.affinity }}
62 affinity:
63{{ toYaml .Values.affinity | indent 10 }}
64 {{- end }}
65 imagePullSecrets:
66 - name: "{{ include "common.namespace" . }}-docker-registry-key"