Rebase Gitea smb volume

This commit is contained in:
2025-07-08 21:20:32 +10:00
parent 85615694b1
commit f68023b22c
5 changed files with 61 additions and 1 deletions

View File

@ -0,0 +1,31 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
name: csismb-gitea-data
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: csismb-gitea-data
mountOptions:
- dir_mode=0777
- file_mode=0777
- nobrl
- cache=none
- mfsymlinks
- noserverino # required to prevent data corruption
csi:
driver: smb.csi.k8s.io
# volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name}
# make sure this value is unique for every share in the cluster
volumeHandle: 192.168.154.195#gitea#data
volumeAttributes:
source: //192.168.154.195/K3s.Volumes
subDir: gitea/data
nodeStageSecretRef:
name: smb-credentials
namespace: gitea