Jakub Latusek | 44f0fdd | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 1 | {{/* |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 2 | # Copyright © 2019 Nordix Foundation |
| 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 | 44f0fdd | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 15 | */}} |
Grzegorz-Lis | d1c1f6a | 2020-07-29 12:22:40 +0200 | [diff] [blame] | 16 | apiVersion: apps/v1 |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 17 | kind: Deployment |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 18 | metadata: {{- include "common.resourceMetadata" . | nindent 2 }} |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 19 | spec: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 20 | selector: {{- include "common.selectors" . | nindent 4 }} |
| 21 | replicas: {{ index .Values.replicaCount }} |
Sylvain Desbureaux | 747982c | 2020-11-19 17:40:05 +0100 | [diff] [blame] | 22 | minReadySeconds: {{ .Values.minReadySeconds }} |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 23 | strategy: |
Sylvain Desbureaux | 747982c | 2020-11-19 17:40:05 +0100 | [diff] [blame] | 24 | type: {{ .Values.updateStrategy.type }} |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 25 | rollingUpdate: |
Sylvain Desbureaux | 747982c | 2020-11-19 17:40:05 +0100 | [diff] [blame] | 26 | maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }} |
| 27 | maxSurge: {{ .Values.updateStrategy.maxSurge }} |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 28 | template: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 29 | metadata: {{- include "common.templateMetadata" . | nindent 6 }} |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 30 | spec: |
| 31 | containers: |
| 32 | - name: {{ include "common.name" . }} |
Sylvain Desbureaux | 747982c | 2020-11-19 17:40:05 +0100 | [diff] [blame] | 33 | image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
miroslavmasaryk | a7ac7f0 | 2023-03-01 14:12:26 +0100 | [diff] [blame] | 34 | resources: {{ include "common.resources" . | nindent 10 }} |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 35 | envFrom: |
| 36 | - configMapRef: |
| 37 | name: {{ include "common.fullname" . }}-configmap |
| 38 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 39 | volumeMounts: |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 40 | - name: logs |
| 41 | mountPath: /app/logs |
| 42 | - name: config |
| 43 | mountPath: /app/config |
| 44 | readOnly: true |
| 45 | livenessProbe: |
| 46 | tcpSocket: |
Sylvain Desbureaux | 747982c | 2020-11-19 17:40:05 +0100 | [diff] [blame] | 47 | port: {{ .Values.livenessProbe.port }} |
| 48 | initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds}} |
| 49 | periodSeconds: {{ .Values.livenessProbe.periodSeconds}} |
| 50 | successThreshold: {{ .Values.livenessProbe.successThreshold}} |
| 51 | failureThreshold: {{ .Values.livenessProbe.failureThreshold}} |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 52 | ports: {{ include "common.containerPorts" . | nindent 10 }} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 53 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 54 | volumes: |
MichaelMorris | 74fda38 | 2019-03-17 09:36:27 +0000 | [diff] [blame] | 55 | - name: logs |
| 56 | emptyDir: {} |
| 57 | - name: config |
| 58 | configMap: |
| 59 | name: {{ include "common.fullname" . }}-app-configmap |
Andreas Geissler | bd0d31a | 2024-03-20 09:51:32 +0100 | [diff] [blame^] | 60 | {{- include "common.imagePullSecrets" . | nindent 6 }} |