arrstack: mount legacy mediafs CephFS via static PV/PVC
Exposes the legacy mediafs filesystem to the arrstack namespace for the upcoming mediamover tool. Adds a ceph-mediafs-secret VaultStaticSecret in csi-cephfs and a 10Ti static RWX PV/PVC pair bound by claimRef.
This commit is contained in:
@@ -7,8 +7,10 @@ resources:
|
||||
- vaultauth.yaml
|
||||
- pv-media-tv.yaml
|
||||
- pv-media-movies.yaml
|
||||
- pv-mediafs.yaml
|
||||
- pvc-media-tv.yaml
|
||||
- pvc-media-movies.yaml
|
||||
- pvc-mediafs.yaml
|
||||
- media-bucket.yaml
|
||||
- backups-bucket.yaml
|
||||
- postgres
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
---
|
||||
# Static PV exposing the legacy mediafs CephFS filesystem root for the upcoming
|
||||
# mediamover tool. clusterID only selects the monitor set from the csi config;
|
||||
# fsName selects the actual filesystem, so the ssd_ec clusterID still reaches
|
||||
# mediafs on the same cluster. Staged with the dedicated ceph-mediafs client.
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: arrstack-mediafs
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Ti
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: ""
|
||||
volumeMode: Filesystem
|
||||
claimRef:
|
||||
namespace: arrstack
|
||||
name: mediafs
|
||||
csi:
|
||||
driver: cephfs.csi.ceph.com
|
||||
volumeHandle: arrstack-mediafs-static
|
||||
nodeStageSecretRef:
|
||||
name: ceph-mediafs-secret
|
||||
namespace: csi-cephfs
|
||||
volumeAttributes:
|
||||
staticVolume: "true"
|
||||
clusterID: cephfs_csi_ssd_ec_4_1
|
||||
fsName: mediafs
|
||||
rootPath: /
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
# Legacy mediafs filesystem root, statically bound to the arrstack-mediafs PV
|
||||
# for the upcoming mediamover tool. storageClassName "" + volumeName disables
|
||||
# dynamic provisioning and binds the pre-created static PV.
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mediafs
|
||||
namespace: arrstack
|
||||
annotations:
|
||||
k8up.io/backup: "false"
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Ti
|
||||
storageClassName: ""
|
||||
volumeName: arrstack-mediafs
|
||||
volumeMode: Filesystem
|
||||
@@ -6,5 +6,6 @@ resources:
|
||||
- namespace.yaml
|
||||
- vaultauth.yaml
|
||||
- vaultstaticsecret.yaml
|
||||
- vaultstaticsecret-mediafs.yaml
|
||||
- storageclass.yaml
|
||||
- vmservicescrape.yaml
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: secrets.hashicorp.com/v1beta1
|
||||
kind: VaultStaticSecret
|
||||
metadata:
|
||||
name: ceph-mediafs-secret
|
||||
namespace: csi-cephfs
|
||||
spec:
|
||||
vaultAuthRef: ceph-csi-cephfs
|
||||
mount: kv
|
||||
type: kv-v2
|
||||
path: service/kubernetes/au/syd1/csi/ceph-mediafs-secret
|
||||
refreshAfter: 5m
|
||||
destination:
|
||||
name: ceph-mediafs-secret
|
||||
create: true
|
||||
Reference in New Issue
Block a user