blob: 9f8d71c332bc7190ab8bbc152de03a4f1aafafd6 [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 }}"
miroslavmasaryka7ac7f02023-03-01 14:12:26 +010053 resources: {{ include "common.resources" . | nindent 12 }}
Priyankaec757972018-03-28 11:23:59 +000054 {{- if .Values.nodeSelector }}
55 nodeSelector:
56{{ toYaml .Values.nodeSelector | indent 10 }}
57 {{- end -}}
58 {{- if .Values.affinity }}
59 affinity:
60{{ toYaml .Values.affinity | indent 10 }}
61 {{- end }}
farida azmy11e021d2021-10-02 15:18:20 +020062 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
efiacor7009bc02023-02-17 07:47:55 +000063 volumes:
Sylvain Desbureauxbc1f4be2021-02-16 11:51:30 +010064 - name: lighttpd
65 configMap:
efiacor7009bc02023-02-17 07:47:55 +000066 name: {{ include "common.fullname" . }}
Andreas Geisslerbd0d31a2024-03-20 09:51:32 +010067 {{- include "common.imagePullSecrets" . | nindent 6 }}