blob: 06a5168bccc40fb53d3713a292945b7a7ffcecf5 [file] [log] [blame]
Jakub Latusek93cb6d92020-10-21 13:36:29 +02001{{/*
Priyankaec757972018-03-28 11:23:59 +00002# Copyright © 2017 Amdocs, Bell Canada
3#
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
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
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.
Jakub Latusek93cb6d92020-10-21 13:36:29 +020015*/}}
Priyankaec757972018-03-28 11:23:59 +000016
kwasiel36800cd2020-07-14 10:27:53 +000017apiVersion: apps/v1
Priyankaec757972018-03-28 11:23:59 +000018kind: Deployment
efiacor7009bc02023-02-17 07:47:55 +000019metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
Priyankaec757972018-03-28 11:23:59 +000020spec:
21 replicas: {{ .Values.replicaCount }}
efiacor7009bc02023-02-17 07:47:55 +000022 selector: {{- include "common.selectors" . | nindent 4 }}
Priyankaec757972018-03-28 11:23:59 +000023 template:
efiacor7009bc02023-02-17 07:47:55 +000024 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
Priyankaec757972018-03-28 11:23:59 +000025 spec:
26 containers:
27 - name: {{ include "common.name" . }}
Sylvain Desbureaux2628ad92020-11-21 22:30:52 +010028 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
Priyankaec757972018-03-28 11:23:59 +000029 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
efiacor7009bc02023-02-17 07:47:55 +000030 ports: {{ include "common.containerPorts" . | nindent 12 }}
Priyankaec757972018-03-28 11:23:59 +000031 {{- if eq .Values.liveness.enabled true }}
32 livenessProbe:
efiacor7009bc02023-02-17 07:47:55 +000033 httpGet:
34 port: {{ .Values.liveness.port }}
35 path: {{ .Values.liveness.path }}
Priyankaec757972018-03-28 11:23:59 +000036 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
37 periodSeconds: {{ .Values.liveness.periodSeconds }}
38 {{ end -}}
39 readinessProbe:
efiacor7009bc02023-02-17 07:47:55 +000040 httpGet:
41 port: {{ .Values.readiness.port }}
42 path: {{ .Values.readiness.path }}
Priyankaec757972018-03-28 11:23:59 +000043 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
44 periodSeconds: {{ .Values.readiness.periodSeconds }}
efiacor7009bc02023-02-17 07:47:55 +000045 volumeMounts:
Sylvain Desbureauxbc1f4be2021-02-16 11:51:30 +010046 - name: lighttpd
efiacor7009bc02023-02-17 07:47:55 +000047 mountPath: /etc/lighttpd/lighttpd.conf
Sylvain Desbureauxbc1f4be2021-02-16 11:51:30 +010048 subPath: lighttpd.conf
jitendra sharma948ee222020-04-16 11:57:38 +053049 readOnly: true
Priyankaec757972018-03-28 11:23:59 +000050 env:
Kanagaraj Manickam k00365106ad92ce52018-05-02 09:43:15 +053051 - name: OPEN_CLI_MODE
Priyankaec757972018-03-28 11:23:59 +000052 value: "{{ .Values.config.climode }}"
53 resources:
Mandeep Khinda5e3f36a2018-09-24 15:25:42 +000054{{ include "common.resources" . | indent 12 }}
Priyankaec757972018-03-28 11:23:59 +000055 {{- if .Values.nodeSelector }}
56 nodeSelector:
57{{ toYaml .Values.nodeSelector | indent 10 }}
58 {{- end -}}
59 {{- if .Values.affinity }}
60 affinity:
61{{ toYaml .Values.affinity | indent 10 }}
62 {{- end }}
farida azmy11e021d2021-10-02 15:18:20 +020063 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
efiacor7009bc02023-02-17 07:47:55 +000064 volumes:
Sylvain Desbureauxbc1f4be2021-02-16 11:51:30 +010065 - name: lighttpd
66 configMap:
efiacor7009bc02023-02-17 07:47:55 +000067 name: {{ include "common.fullname" . }}
Priyankaec757972018-03-28 11:23:59 +000068 imagePullSecrets:
69 - name: "{{ include "common.namespace" . }}-docker-registry-key"