Jakub Latusek | 93cb6d9 | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 1 | {{/* |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 2 | # 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 Latusek | 93cb6d9 | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 15 | */}} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 16 | |
kwasiel | 36800cd | 2020-07-14 10:27:53 +0000 | [diff] [blame] | 17 | apiVersion: apps/v1 |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 18 | kind: Deployment |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 19 | metadata: {{- include "common.resourceMetadata" . | nindent 2 }} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 20 | spec: |
| 21 | replicas: {{ .Values.replicaCount }} |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 22 | selector: {{- include "common.selectors" . | nindent 4 }} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 23 | template: |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 24 | metadata: {{- include "common.templateMetadata" . | nindent 6 }} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 25 | spec: |
| 26 | containers: |
| 27 | - name: {{ include "common.name" . }} |
Sylvain Desbureaux | 2628ad9 | 2020-11-21 22:30:52 +0100 | [diff] [blame] | 28 | image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 29 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 30 | ports: {{ include "common.containerPorts" . | nindent 12 }} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 31 | {{- if eq .Values.liveness.enabled true }} |
| 32 | livenessProbe: |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 33 | httpGet: |
| 34 | port: {{ .Values.liveness.port }} |
| 35 | path: {{ .Values.liveness.path }} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 36 | initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} |
| 37 | periodSeconds: {{ .Values.liveness.periodSeconds }} |
| 38 | {{ end -}} |
| 39 | readinessProbe: |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 40 | httpGet: |
| 41 | port: {{ .Values.readiness.port }} |
| 42 | path: {{ .Values.readiness.path }} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 43 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 44 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 45 | volumeMounts: |
Sylvain Desbureaux | bc1f4be | 2021-02-16 11:51:30 +0100 | [diff] [blame] | 46 | - name: lighttpd |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 47 | mountPath: /etc/lighttpd/lighttpd.conf |
Sylvain Desbureaux | bc1f4be | 2021-02-16 11:51:30 +0100 | [diff] [blame] | 48 | subPath: lighttpd.conf |
jitendra sharma | 948ee22 | 2020-04-16 11:57:38 +0530 | [diff] [blame] | 49 | readOnly: true |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 50 | env: |
Kanagaraj Manickam k00365106 | ad92ce5 | 2018-05-02 09:43:15 +0530 | [diff] [blame] | 51 | - name: OPEN_CLI_MODE |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 52 | value: "{{ .Values.config.climode }}" |
miroslavmasaryk | a7ac7f0 | 2023-03-01 14:12:26 +0100 | [diff] [blame] | 53 | resources: {{ include "common.resources" . | nindent 12 }} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 54 | {{- 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 azmy | 11e021d | 2021-10-02 15:18:20 +0200 | [diff] [blame] | 62 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 63 | volumes: |
Sylvain Desbureaux | bc1f4be | 2021-02-16 11:51:30 +0100 | [diff] [blame] | 64 | - name: lighttpd |
| 65 | configMap: |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 66 | name: {{ include "common.fullname" . }} |
Andreas Geissler | bd0d31a | 2024-03-20 09:51:32 +0100 | [diff] [blame] | 67 | {{- include "common.imagePullSecrets" . | nindent 6 }} |