Replies: 2 comments 3 replies
-
Need a k8s expert on this. |
Beta Was this translation helpful? Give feedback.
-
I think there is a bug in mapping the volContext-parameters to mount-args? In mounter_seaweedfs.go, Is it okay if i remove the selective-mapping from Line 89 - 96 and simply add any This enables setting any mount-options (like dataCenter, currently missing) using the context without having to add them manually in the code. |
Beta Was this translation helpful? Give feedback.
-
I'd like to add the mount-option "dataCenter" from weed mount.
It should be able to get added to StorageClass parameters and PersistentVolume.
Is this just a matter of adding it to the mounter?
And if so, where?
This comment gave me some hesitation, but i didnt find a better suited location while looking.
Is
volumeAttributes
from PersistentVolume andparameters
from StorageClass bothvolContext
?I'd also like to add an automatic selector for the dataCenter based on the dataCenter the current pod is running in.
Node-Label
topology.kubernetes.io/zone
(Documentation) could be used?Maybe have this option enabled by-default?
Is it ok to set this in mounter_seaweedfs.go?
That would also pave the first step towards "Topology-aware volume provisioners".
Read:
Blog-Post:https://kubernetes.io/blog/2018/10/11/topology-aware-volume-provisioning-in-kubernetes/
K8s-Documentation: https://kubernetes.io/docs/concepts/storage/storage-classes/#volume-binding-mode
CSI-documentation: https://kubernetes-csi.github.io/docs/topology.html
Beta Was this translation helpful? Give feedback.
All reactions