Say, I have ten thousand buckets of same naming pattern and rest all other buckets with different names. How can I mount only those buckets who are in the same pattern ,using wild cards?
For Example:
My Bucket are follwing the pattern in their names:
bucket-stroage-1
bucket-storage-2
bucket-storage-3
bucket-storage-4
and so on.
I want to use GCSFuse to mount these all buckets in my persistent volume Yaml.
apiVersion: v1
kind: PersistentVolume
metadata:
name: gcs-fuse-csi-pv
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 5Gi
storageClassName: example-storage-class
claimRef:
namespace: NAMESPACE
name: gcs-fuse-csi-static-pvc
mountOptions:
- implicit-dirs
csi:
driver: gcsfuse.csi.storage.gke.io
volumeHandle: PATTERN_BUCKET_NAME-*
volumeAttributes:
gcsfuseLoggingSeverity: warning
Is it possible ?
I am trying to mount a particular set of buckets as persistent volume , not all buckets, in Google Kubernetes Cluster