-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathnginx.yaml
37 lines (36 loc) · 812 Bytes
/
nginx.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: pi-proxy
labels:
kubernetes.courselabs.co: persistentvolumes
app: pi-proxy
spec:
selector:
matchLabels:
app: pi-proxy
template:
metadata:
labels:
app: pi-proxy
storage: pvc
spec:
containers:
- image: nginx:1.18-alpine
name: nginx
ports:
- containerPort: 80
name: http
volumeMounts:
- name: config
mountPath: "/etc/nginx/"
readOnly: true
- name: cache-volume
mountPath: /tmp
volumes:
- name: config
configMap:
name: nginx-configmap
- name: cache-volume
persistentVolumeClaim:
claimName: pi-proxy-pvc