f8b2d43f35281ba3a5e0779640abe145d63ea326
[oom/platform/cert-service.git] / certService / helm / aaf-cert-service / templates / deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: {{ .Chart.Name }}-deployment
5 spec:
6   selector:
7     matchLabels:
8       app: {{ .Values.appLabel }}
9   replicas: {{ .Values.replicaCount }}
10   template:
11     metadata:
12       labels:
13         app: {{ .Values.appLabel }}
14     spec:
15       volumes:
16       - name: {{ .Values.volume.name }}
17         secret:
18           secretName: {{ .Values.secret.name }}
19       containers:
20       - name: aaf-cert-service
21         image: {{ .Values.repository }}/{{ .Values.image }}
22         imagePullPolicy: {{ .Values.pullPolicy }}
23         ports:
24         - containerPort: {{ .Values.containerPort }}
25         livenessProbe:
26           httpGet:
27             port: {{ .Values.containerPort }}
28             path: {{ .Values.liveness.path }}
29             initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
30             periodSeconds: {{ .Values.liveness.periodSeconds }}
31         readinessProbe:
32           httpGet:
33             port: {{ .Values.containerPort }}
34             path: {{ .Values.readiness.path }}
35             initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
36             periodSeconds: {{ .Values.readiness.periodSeconds }}
37         volumeMounts:
38         - name: {{ .Values.volume.name }}
39           mountPath: {{ .Values.volume.mountPath }}
40           readOnly: true
41         resources:
42           {{ toYaml .Values.resources }}