curve-operator
curve-operator copied to clipboard
Monitor deploy as a kubernetes CR
When deploy curve cluster monitor, now we using enable as ON-OFF, and we can split it as a K8s CR to manage it.
现在集群的监控是在部署curvebs/curvefs cr的时候,在指定资源CRD的yaml文件中通过Monitor字段中的Enable设置是否部署集群监控(Prometheus, Grafana, node-exporter)。但是,这种方式不太优雅,一种更好的方法是定义CurveMonitor这个CR,在自定义CR的controller中实现部署逻辑。从而就不需要在curvebs/curvefs集群中定义Monitor字段。