Documentation
¶
Overview ¶
Package config provides methods for generating the Ceph config for a Ceph cluster and for producing a "ceph.conf" compatible file from the config as well as Ceph command line-compatible flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // The labels that can be specified with the K8s labels such as topology.kubernetes.io/zone // These are all at the top layers of the CRUSH map. KubernetesTopologyLabels = []string{"zone", "region"} // The node labels that are supported with the topology.rook.io prefix such as topology.rook.io/rack // The labels are in order from lowest to highest in the CRUSH hierarchy CRUSHTopologyLabels = []string{"chassis", "rack", "row", "pdu", "pod", "room", "datacenter"} // The list of supported failure domains in the CRUSH map, ordered from lowest to highest CRUSHMapLevelsOrdered = append([]string{"host"}, append(CRUSHTopologyLabels, KubernetesTopologyLabels...)...) )
Functions ¶
func ExtractOSDTopologyFromLabels ¶
ExtractTopologyFromLabels extracts rook topology from labels and returns a map from topology type to value
func GetDefaultTopologyLabels ¶
func GetDefaultTopologyLabels() string
GetDefaultTopologyLabels returns the supported default topology labels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.