Krzysztof Kuzmicki | bae8d83 | 2021-11-24 12:00:45 +0100 | [diff] [blame] | 1 | apiVersion: apps/v1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: {{ include "pmhttpsserver.fullname" . }} |
| 5 | namespace: {{ include "pmhttpsserver.namespace" . }} |
| 6 | labels: |
| 7 | {{ include "pmhttpsserver.labels" . | nindent 4 }} |
| 8 | spec: |
| 9 | selector: |
| 10 | matchLabels: |
| 11 | {{ include "pmhttpsserver.selectorLabels" . | nindent 6 }} |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | {{ include "pmhttpsserver.selectorLabels" . | nindent 8 }} |
Andreas Geissler | 4dcb36e | 2023-02-16 18:05:20 +0100 | [diff] [blame^] | 16 | annotations: |
| 17 | sidecar.istio.io/inject: "false" |
Krzysztof Kuzmicki | bae8d83 | 2021-11-24 12:00:45 +0100 | [diff] [blame] | 18 | 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 |