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