-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-httpd.yaml
49 lines (49 loc) · 1.11 KB
/
deploy-httpd.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
40
41
42
43
44
45
46
47
48
49
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpd
spec:
replicas: 1
selector:
matchLabels:
app: httpd
template:
metadata:
labels:
app: httpd
spec:
containers:
- name: httpd
image: anuddeeph/apache-webserver-php
volumeMounts:
- name: my-volume1
mountPath: /data1
- name: my-volume2
mountPath: /data2
- name: my-volume3
mountPath: /data3
- name: my-volume4
mountPath: /data4
- name: my-volume5
mountPath: /data5
- name: my-volume6
mountPath: /data6
volumes:
- name: my-volume1
persistentVolumeClaim:
claimName: pvc1
- name: my-volume2
persistentVolumeClaim:
claimName: pvc2
- name: my-volume3
persistentVolumeClaim:
claimName: pvc3
- name: my-volume4
persistentVolumeClaim:
claimName: pvc4
- name: my-volume5
persistentVolumeClaim:
claimName: pvc5
- name: my-volume6
persistentVolumeClaim:
claimName: pvc6