Documentation ¶
Overview ¶
Package mgr for the Ceph manager.
Package mgr for the Ceph manager.
Package mgr for the Ceph manager.
Index ¶
- Constants
- func GeneratePassword(length int) (string, error)
- func GenerateRandomBytes(length int) ([]byte, error)
- func IsModuleInSpec(modules []cephv1.Module, moduleName string) bool
- type Cluster
- func (c *Cluster) EnableServiceMonitor() error
- func (c *Cluster) GetActiveMgr() (string, error)
- func (c *Cluster) MakeMetricsService(name, servicePortMetricName string) (*v1.Service, error)
- func (c *Cluster) SetMgrRoleLabel(daemonNameToUpdate string, isActive bool) error
- func (c *Cluster) Start() error
Constants ¶
View Source
const ( AppName = "rook-ceph-mgr" PrometheusModuleName = "prometheus" // DefaultMetricsPort prometheus exporter port DefaultMetricsPort uint16 = 9283 )
Variables ¶
This section is empty.
Functions ¶
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) GetActiveMgr ¶ added in v1.14.9
func (*Cluster) MakeMetricsService ¶ added in v1.4.0
MakeMetricsService generates the Kubernetes service object for the monitoring service
func (*Cluster) SetMgrRoleLabel ¶ added in v1.14.9
SetMgrRoleLabel sets 'mgr_role: active' label to given manager daemon pods if isActive is true. Otherwise sets 'mgr_role: standby' label to manager pods.
Click to show internal directories.
Click to hide internal directories.