gluster / gluster-kubernetes

GlusterFS Native Storage Service for Kubernetes
Apache License 2.0
875 stars 389 forks source link

[GAP] Can StorageClass RestURL be defined as $dynamic enviroment variable? #558

Open haji-haji-haji opened 5 years ago

haji-haji-haji commented 5 years ago

Hi there,

Maybe I am missing something but wouldn't it be ace if the RestURL be defined with a dynamic variable?

https://github.com/gluster/gluster-kubernetes/blob/master/docs/examples/hello_world/README.md

apiVersion: storage.k8s.io/v1beta1 kind: StorageClass metadata: name: gluster-heketi <1> provisioner: kubernetes.io/glusterfs <2> parameters: resturl: "http://10.42.0.0:8080" <4> restuser: "joe" <5> restuserkey: "My Secret Life" <6>

Anyone know how to make this magic happen :) I feel this is great especially if an event occurred and the whole cluster was rebooted and many IP addreses changed.

~Haji