mirror of
https://code.forgejo.org/infrastructure/documentation
synced 2024-12-22 21:03:52 +00:00
34 lines
593 B
YAML
34 lines
593 B
YAML
---
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: $pvc_name
|
|
spec:
|
|
capacity:
|
|
storage: $pvc_capacity
|
|
nfs:
|
|
server: $node_nfs_server
|
|
path: /k8s/$pvc_name
|
|
accessModes:
|
|
- ReadWriteMany
|
|
persistentVolumeReclaimPolicy: Retain
|
|
storageClassName: nfs
|
|
mountOptions:
|
|
- noatime
|
|
- nfsvers=4.2
|
|
volumeMode: Filesystem
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: $pvc_name
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteMany
|
|
resources:
|
|
requests:
|
|
storage: $pvc_capacity
|
|
volumeName: $pvc_name
|
|
storageClassName: nfs
|
|
volumeMode: Filesystem
|