Gluttony-Cluster/docs/technical/nfs-storage.md

35 lines
556 B
Markdown
Raw Permalink Normal View History

2024-11-03 21:24:17 +00:00
# NFS Storage
You will want to make NFS based PV/PVC. Here is a sample one just in case.
```yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-pv
namespace: my-namespace
spec:
capacity:
storage: 20Gi
accessModes:
- ReadWriteMany
nfs:
path: /path/to/your/nfs/share
server: <your-nfs-server-ip>
```
```yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-pvc
namespace: my-namespace
spec:
accessModes:
- ReadWriteMany
storageClassName: ""
resources:
requests:
storage: 20Gi
```