35 lines
556 B
Markdown
35 lines
556 B
Markdown
|
# 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
|
||
|
```
|