Jakub Latusek | 44f0fdd | 2020-10-21 13:36:29 +0200 | [diff] [blame] | 1 | {{/* |
Piotr Borelowski | 145e6dd | 2020-02-14 16:57:50 +0100 | [diff] [blame] | 2 | # Copyright © 2020 Samsung |
| 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 | */}} |
Piotr Borelowski | 145e6dd | 2020-02-14 16:57:50 +0100 | [diff] [blame] | 16 | |
| 17 | apiVersion: apps/v1 |
| 18 | kind: Deployment |
| 19 | metadata: {{- include "common.resourceMetadata" . | nindent 2 }} |
| 20 | spec: |
| 21 | selector: {{- include "common.selectors" . | nindent 4 }} |
Sylvain Desbureaux | 747982c | 2020-11-19 17:40:05 +0100 | [diff] [blame] | 22 | replicas: {{ .Values.replicaCount }} |
Piotr Borelowski | 145e6dd | 2020-02-14 16:57:50 +0100 | [diff] [blame] | 23 | template: |
| 24 | metadata: |
| 25 | labels: {{- include "common.labels" . | nindent 8 }} |
| 26 | spec: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 27 | initContainers: |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 28 | {{ include "common.readinessCheck.waitFor" . | indent 6 | trim }} |
Piotr Borelowski | 145e6dd | 2020-02-14 16:57:50 +0100 | [diff] [blame] | 29 | containers: |
| 30 | - name: {{ include "common.name" . }} |
| 31 | envFrom: |
| 32 | - configMapRef: |
| 33 | name: {{ include "common.fullname" . }}-configmap |
Sylvain Desbureaux | 747982c | 2020-11-19 17:40:05 +0100 | [diff] [blame] | 34 | image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Piotr Borelowski | 145e6dd | 2020-02-14 16:57:50 +0100 | [diff] [blame] | 35 | resources: {{ include "common.resources" . | nindent 12 }} |
| 36 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 37 | volumeMounts: |
Piotr Borelowski | 145e6dd | 2020-02-14 16:57:50 +0100 | [diff] [blame] | 38 | - name: logs |
| 39 | mountPath: /app/logs |
| 40 | - name: config |
| 41 | mountPath: /app/config |
| 42 | readOnly: true |
| 43 | livenessProbe: |
| 44 | tcpSocket: |
Sylvain Desbureaux | 747982c | 2020-11-19 17:40:05 +0100 | [diff] [blame] | 45 | port: {{ .Values.livenessProbe.port }} |
| 46 | initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds}} |
| 47 | periodSeconds: {{ .Values.livenessProbe.periodSeconds}} |
| 48 | successThreshold: {{ .Values.livenessProbe.successThreshold}} |
| 49 | failureThreshold: {{ .Values.livenessProbe.failureThreshold}} |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 50 | ports: {{- include "common.containerPorts" . | nindent 12 }} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 51 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 52 | volumes: |
Piotr Borelowski | 145e6dd | 2020-02-14 16:57:50 +0100 | [diff] [blame] | 53 | - name: logs |
| 54 | emptyDir: {} |
| 55 | - name: config |
| 56 | configMap: |
| 57 | name: {{ include "common.fullname" . }}-app-configmap |