-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
39 lines (39 loc) · 955 Bytes
/
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: httpserver
namespace: myserver
spec:
replicas: 1
selector:
matchLabels:
app: httpserver
template:
metadata:
labels:
app: httpserver
spec:
volumes:
- name: service-cert
hostPath:
path: /usr/secrets
containers:
- name: httpserver
image: quay.io/rh_ee_jcordoba/httpserver:0.8
ports:
- containerPort: 8443
volumeMounts:
- name: service-cert
readOnly: true
mountPath: /usr/secrets
env:
- name: CERTIFICATE_FILE
valueFrom:
configMapKeyRef:
name: httpserver
key: CERTIFICATE_FILE
- name: CERTIFICATE_KEY
valueFrom:
configMapKeyRef:
name: httpserver
key: CERTIFICATE_KEY