Change mount point

master
guppy 2023-06-01 15:11:04 +02:00
parent f01a0bbf4d
commit 65e6725f34
1 changed files with 4 additions and 4 deletions

View File

@ -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