summaryrefslogtreecommitdiffstats
path: root/robot/assets/helm/pm-https-server/templates/deployment.yaml
blob: dc00607ab00475ec4c2a09f7a7538d09deea205e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "pmhttpsserver.fullname" . }}
  namespace: {{ include "pmhttpsserver.namespace" . }}
  labels:
    {{ include "pmhttpsserver.labels" . | nindent 4 }}
spec:
  selector:
    matchLabels:
      {{ include "pmhttpsserver.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        {{ include "pmhttpsserver.selectorLabels" . | nindent 8 }}
    spec:
      containers:
        - name: {{ .Chart.Name }}
          image: '{{ include "repositoryGenerator.repository" . }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}'
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          ports:
            - name: http
              containerPort: 80
              protocol: TCP
            - name: http2
              containerPort: 8080
              protocol: TCP
            - name: https
              containerPort: 443
              protocol: TCP
          volumeMounts:
            - name: certstore
              mountPath: {{ .Values.certsDir }}
      volumes:
        - name: certstore
          projected:
            sources:
              - secret:
                  name: '{{.Values.certificates.name}}-secret'
                  items:
                    - key: tls.key
                      path: key.pem
                    - key: tls.crt
                      path: keystore.pem
                    - key: ca.crt
                      path: truststore.pem