blob: 780ff1a4e9f5327437ec36c7f7c4d4dadd7760bd [file] [log] [blame]
Krzysztof Kuzmickibae8d832021-11-24 12:00:45 +01001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: {{ include "pmhttpsserver.fullname" . }}
5 namespace: {{ include "pmhttpsserver.namespace" . }}
6 labels:
7 {{ include "pmhttpsserver.labels" . | nindent 4 }}
8spec:
9 selector:
10 matchLabels:
11 {{ include "pmhttpsserver.selectorLabels" . | nindent 6 }}
12 template:
13 metadata:
14 labels:
15 {{ include "pmhttpsserver.selectorLabels" . | nindent 8 }}
Andreas Geissler4dcb36e2023-02-16 18:05:20 +010016 annotations:
17 sidecar.istio.io/inject: "false"
Krzysztof Kuzmickibae8d832021-11-24 12:00:45 +010018 spec:
19 containers:
20 - name: {{ .Chart.Name }}
21 image: '{{ include "repositoryGenerator.repository" . }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}'
22 imagePullPolicy: {{ .Values.image.pullPolicy }}
23 ports:
24 - name: http
25 containerPort: 80
26 protocol: TCP
27 - name: http2
28 containerPort: 8080
29 protocol: TCP
30 - name: https
31 containerPort: 443
32 protocol: TCP
33 volumeMounts:
34 - name: certstore
35 mountPath: {{ .Values.certsDir }}
36 volumes:
37 - name: certstore
38 projected:
39 sources:
40 - secret:
41 name: '{{.Values.certificates.name}}-secret'
42 items:
43 - key: tls.key
44 path: key.pem
45 - key: tls.crt
46 path: keystore.pem
47 - key: ca.crt
48 path: truststore.pem