[PORTAL-NG] Publish ui and bff charts in OOM
[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       imagePullSecrets:
12       - name: "{{ include "common.namespace" . }}-docker-registry-key"
13       containers:
14         - name: {{ .Chart.Name }}
15           image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image.imageName }}:{{ .Values.image.tag | default .Chart.AppVersion }}
16           imagePullPolicy: {{ .Values.image.pullPolicy }}
17           envFrom:
18           - configMapRef:
19               name: {{ include "common.fullname" . }}-configmap
20           - secretRef:
21               name: {{ include "common.fullname" . }}-secret
22           ports:
23             - name: http
24               containerPort: {{ .Values.service.port }}
25               protocol: TCP
26           readinessProbe:
27             httpGet:
28               path: /actuator/health/readiness
29               port: {{ .Values.service.port }}
30             initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
31             failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
32           livenessProbe:
33             httpGet:
34               path: /actuator/health/liveness
35               port: {{ .Values.service.port }}
36             initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
37             failureThreshold: {{ .Values.probes.liveness.failureThreshold }}