Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / portal-ng / components / portal-ng-preferences / templates / deployment.yaml
1 {{/*
2 # Copyright © 2024 Deutsche Telekom AG.
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.
15 */}}
16 apiVersion: apps/v1
17 kind: Deployment
18 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
19 spec:
20   selector: {{- include "common.selectors" . | nindent 4 }}
21   replicas: {{ .Values.replicaCount }}
22   revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
23   template:
24     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
25     spec:
26       {{- include "common.imagePullSecrets" . | nindent 6 }}
27       containers:
28         - name: {{ .Chart.Name }}
29           image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image.imageName }}:{{ .Values.image.tag | default .Chart.AppVersion }}
30           imagePullPolicy: {{ .Values.image.pullPolicy }}
31           envFrom:
32             - configMapRef:
33                 name: {{ include "common.fullname" . }}-configmap
34             - secretRef:
35                 name: {{ include "common.fullname" . }}-secret
36           ports: {{ include "common.containerPorts" . | nindent 12  }}
37           livenessProbe:
38             httpGet:
39               path: /actuator/health/liveness
40               port: {{ .Values.service.port }}
41             initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
42             failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
43           readinessProbe:
44             httpGet:
45               path: /actuator/health/readiness
46               port: {{ .Values.service.port }}
47             initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
48             failureThreshold: {{ .Values.probes.readiness.failureThreshold }}