mgr

package
v1.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 29 Imported by: 30

Documentation

Overview

Package mgr for the Ceph manager.

Package mgr for the Ceph manager.

Package mgr for the Ceph manager.

Index

Constants

View Source
const (
	AppName = "rook-ceph-mgr"

	PrometheusModuleName = "prometheus"

	PgautoscalerModuleName = "pg_autoscaler"

	// DefaultMetricsPort prometheus exporter port
	DefaultMetricsPort uint16 = 9283
)

Variables

View Source
var PrometheusExternalRuleName = "prometheus-ceph-vVERSION-rules-external"

PrometheusExternalRuleName is the name of the prometheus external rule

Functions

func CreateTempPasswordFile added in v1.5.10

func CreateTempPasswordFile(password string) (*os.File, error)

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 GeneratePassword(length int) (string, error)

func GenerateRandomBytes added in v1.4.0

func GenerateRandomBytes(length int) ([]byte, error)

GenerateRandomBytes returns securely generated random bytes.

func IsModuleInSpec added in v1.3.6

func IsModuleInSpec(modules []cephv1.Module, moduleName string) bool

IsModuleInSpec returns whether a module is present in the CephCluster manager spec

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) DeployPrometheusRule added in v1.4.0

func (c *Cluster) DeployPrometheusRule(name, namespace string) error

DeployPrometheusRule deploy prometheusRule that adds alerting and/or recording rules to the cluster

func (*Cluster) EnableServiceMonitor added in v1.4.0

func (c *Cluster) EnableServiceMonitor(activeDaemon string) error

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) ReconcileMultipleServices added in v1.6.0

func (c *Cluster) ReconcileMultipleServices(daemonNameToUpdate string, mgrStatSupported bool) error

ReconcileMultipleServices reconciles the services if the active mgr is the one running in the sidecar

func (*Cluster) Start

func (c *Cluster) Start() error

Start begins the process of running a cluster of Ceph mgrs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL