Change mount point
parent
f01a0bbf4d
commit
65e6725f34
|
|
@ -7,9 +7,9 @@ spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
capacity:
|
capacity:
|
||||||
storage: 10Gi
|
storage: 1Gi
|
||||||
hostPath:
|
hostPath:
|
||||||
path: "/mnt/data"
|
path: "/data"
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
|
|
@ -21,7 +21,7 @@ spec:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 2Gi
|
storage: 1Gi
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
@ -45,7 +45,7 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/www
|
- mountPath: /usr/share/nginx/html/
|
||||||
name: nginx-pv
|
name: nginx-pv
|
||||||
volumes:
|
volumes:
|
||||||
- name: nginx-pv
|
- name: nginx-pv
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue