Rebase Gitea cache volume

This commit is contained in:
2025-07-17 11:45:59 +10:00
parent c0956bfd5e
commit 6a3617b98b
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,34 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
name: csismb-gitea-cache
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: csismb-gitea-cache
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=1000
- gid=1000
- nobrl
- cache=strict
- iocharset=utf8
- 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#cache
volumeAttributes:
source: //192.168.154.195/K3s.Volumes
subDir: gitea/cache
nodeStageSecretRef:
name: smb-credentials
namespace: gitea