Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / portal-ng / components / portal-ng-bff / templates / deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
4 spec:
5   selector: {{- include "common.selectors" . | nindent 4 }}
6   replicas: {{ .Values.replicaCount }}
7   revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
8   template:
9     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
10     spec:
11       {{- include "common.imagePullSecrets" . | nindent 6 }}
12       containers:
13         - name: {{ .Chart.Name }}
14           image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image.imageName }}:{{ .Values.image.tag | default .Chart.AppVersion }}
15           imagePullPolicy: {{ .Values.image.pullPolicy }}
16           envFrom:
17           - configMapRef:
18               name: {{ include "common.fullname" . }}-configmap
19           - secretRef:
20               name: {{ include "common.fullname" . }}-secret
21           ports:
22             - name: http
23               containerPort: {{ .Values.service.port }}
24               protocol: TCP
25           readinessProbe:
26             httpGet:
27               path: /actuator/health/readiness
28               port: {{ .Values.service.port }}
29             initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
30             failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
31           livenessProbe:
32             httpGet:
33               path: /actuator/health/liveness
34               port: {{ .Values.service.port }}
35             initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
36             failureThreshold: {{ .Values.probes.liveness.failureThreshold }}