Triggering auto-expansion of openshift persistent volumes

扶醉桌前 提交于 2020-06-16 17:32:34

问题


I have deployed mysql stateful-set with one master and two slave pods. Each of the pod has their own Persistent Volume Claim(PVC) as per storage requested by user. I am able to expand any persistent volume by editing their respective PVC.

I am trying to implement a service to trigger auto-expansion of respective volume as soon as consumed storage of any pod crosses 90%. (Preferred in Java)

As per my investigation, I can use patch request for editing any PVC json file for desired storage. Also, Cron-Job can be created for checking the storage after fixed time interval, but this looks inefficient to me. It will be difficult and inefficient to monitor hundreds of pods for different users this way.

I am new to Openshit and Kubernetes, Please suggest, how to implement this with most efficiency.

来源:https://stackoverflow.com/questions/61340837/triggering-auto-expansion-of-openshift-persistent-volumes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!