-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
51 lines (51 loc) · 1.14 KB
/
deployment.yml
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
47
48
49
50
51
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: catserver
name: catserver
namespace: catserver
spec:
replicas: 1
selector:
matchLabels:
app: catserver
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: catserver
spec:
containers:
- image: nginx
name: nginx
resources: {}
volumeMounts:
- name: nginx-conf
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
readOnly: true
- name: html-conf
mountPath: /usr/share/nginx/html/cats/index.html
subPath: cats.html
readOnly: true
- name: images
mountPath: /usr/share/nginx/html/cats/images
volumes:
- name: nginx-conf
configMap:
name: nginx-conf
items:
- key: nginx.conf
path: nginx.conf
- name: html-conf
configMap:
name: cats-html
items:
- key: cats.html
path: cats.html
- name: images
persistentVolumeClaim:
claimName: cats-pvc