Documentation ¶
Overview ¶
Package mgr for the Ceph manager.
Package mgr for the Ceph manager.
Package mgr for the Ceph manager.
Index ¶
Constants ¶
const ( AppName = "rook-ceph-mgr" PrometheusModuleName = "prometheus" PgautoscalerModuleName = "pg_autoscaler" // DefaultMetricsPort prometheus exporter port DefaultMetricsPort uint16 = 9283 )
Variables ¶
This section is empty.
Functions ¶
func FileBasedPasswordSupported ¶ added in v1.5.10
func FileBasedPasswordSupported(c *client.ClusterInfo) bool
FileBasedPasswordSupported check if Ceph versions have the latest Ceph dashboard command
func GeneratePassword ¶ added in v1.4.0
func GenerateRandomBytes ¶ added in v1.4.0
GenerateRandomBytes returns securely generated random bytes.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster represents the Rook and environment configuration settings needed to set up Ceph mgrs.
func New ¶
func New(context *clusterd.Context, clusterInfo *cephclient.ClusterInfo, spec cephv1.ClusterSpec, rookVersion string) *Cluster
New creates an instance of the mgr
func (*Cluster) EnableServiceMonitor ¶ added in v1.4.0
EnableServiceMonitor add a servicemonitor that allows prometheus to scrape from the monitoring endpoint of the cluster
func (*Cluster) MakeMetricsService ¶ added in v1.4.0
func (c *Cluster) MakeMetricsService(name, activeDaemon, servicePortMetricName string) (*v1.Service, error)
MakeMetricsService generates the Kubernetes service object for the monitoring service
func (*Cluster) ReconcileActiveMgrServices ¶ added in v1.6.8
ReconcileActiveMgrServices reconciles the services if the active mgr is the one running in the sidecar