forked from FIWARE-Ops/batterypass-demonstrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
39 lines (39 loc) · 1.14 KB
/
deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "waltid.fullname" . }}-certs
labels:
app.kubernetes.io/name: {{ include "waltid.name" . }}-certs
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/name: {{ include "waltid.name" . }}-certs
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "waltid.name" . }}-certs
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
serviceAccountName: default
containers:
- name: {{ .Chart.Name }}
imagePullPolicy: Always
image: "lipanski/docker-static-website:2.1.0"
ports:
- name: http
containerPort: 3000
protocol: TCP
volumeMounts:
- name: certs
mountPath: /home/static/certs
volumes:
- name: certs
secret:
secretName: {{ include "waltid.fullname" . }}-tls-sec
items:
- key: tls.crt
path: tls.crt