Documentation ¶
Overview ¶
Package spec provides Kubernetes controller/pod/container spec items used for many Ceph daemons
Index ¶
- Constants
- func AddCephVersionLabelToDaemonSet(cephVersion version.CephVersion, d *apps.DaemonSet)
- func AddCephVersionLabelToDeployment(cephVersion version.CephVersion, d *apps.Deployment)
- func AddCephVersionLabelToJob(cephVersion version.CephVersion, j *batch.Job)
- func AdminFlags(cluster *cephconfig.ClusterInfo) []string
- func AppLabels(appName, namespace string) map[string]string
- func CephVolumeMounts() []v1.VolumeMount
- func CheckPodMemory(resources v1.ResourceRequirements, cephPodMinimumMemory uint64) error
- func ContainerEnvVarReference(envVarName string) string
- func DaemonEnvVars(image string) []v1.EnvVar
- func DaemonFlags(cluster *cephconfig.ClusterInfo, daemonID string) []string
- func DaemonVolumeMounts(dataPaths *config.DataPathMap, keyringResourceName string) []v1.VolumeMount
- func DaemonVolumes(dataPaths *config.DataPathMap, keyringResourceName string) []v1.Volume
- func PodLabels(appName, namespace, daemonType, daemonID string) map[string]string
- func PodVolumes(dataDirHostPath, namespace string) []v1.Volume
- func RookVolumeMounts() []v1.VolumeMount
- func StoredLogVolume(HostLogDir string) v1.Volume
- func StoredLogVolumeMount() v1.VolumeMount
Constants ¶
const ( // CephVersionLabelKey is the key used for reporting the Ceph version which Rook has detected is // configured for the labeled resource. CephVersionLabelKey = "ceph-version" )
const ( // ConfigInitContainerName is the name which is given to the config initialization container // in all Ceph pods. ConfigInitContainerName = "config-init" )
Variables ¶
This section is empty.
Functions ¶
func AddCephVersionLabelToDaemonSet ¶ added in v1.0.0
func AddCephVersionLabelToDaemonSet(cephVersion version.CephVersion, d *apps.DaemonSet)
AddCephVersionLabelToDaemonSet adds a label reporting the Ceph version which Rook has detected is running in the DaemonSet's pods.
func AddCephVersionLabelToDeployment ¶ added in v1.0.0
func AddCephVersionLabelToDeployment(cephVersion version.CephVersion, d *apps.Deployment)
AddCephVersionLabelToDeployment adds a label reporting the Ceph version which Rook has detected is running in the Deployment's pods.
func AddCephVersionLabelToJob ¶ added in v1.0.0
func AddCephVersionLabelToJob(cephVersion version.CephVersion, j *batch.Job)
AddCephVersionLabelToJob adds a label reporting the Ceph version which Rook has detected is running in the Job's pods.
func AdminFlags ¶ added in v1.0.0
func AdminFlags(cluster *cephconfig.ClusterInfo) []string
AdminFlags returns the command line flags used for Ceph commands requiring admin authentication.
func AppLabels ¶
AppLabels returns labels common for all Rook-Ceph applications which may be useful for admins. App name is the name of the application: e.g., 'rook-ceph-mon', 'rook-ceph-mgr', etc.
func CephVolumeMounts ¶
func CephVolumeMounts() []v1.VolumeMount
CephVolumeMounts returns the common list of Kubernetes volume mounts for Ceph containers.
func CheckPodMemory ¶ added in v1.0.0
func CheckPodMemory(resources v1.ResourceRequirements, cephPodMinimumMemory uint64) error
CheckPodMemory verify pod's memory limit is valid
func ContainerEnvVarReference ¶ added in v1.0.0
ContainerEnvVarReference returns a reference to a Kubernetes container env var of the given name which can be used in command or argument fields.
func DaemonEnvVars ¶ added in v1.0.0
DaemonEnvVars returns the container environment variables used by all Ceph daemons.
func DaemonFlags ¶ added in v1.0.0
func DaemonFlags(cluster *cephconfig.ClusterInfo, daemonID string) []string
DaemonFlags returns the command line flags used by all Ceph daemons.
func DaemonVolumeMounts ¶ added in v1.0.0
func DaemonVolumeMounts(dataPaths *config.DataPathMap, keyringResourceName string) []v1.VolumeMount
DaemonVolumeMounts returns volume mounts which correspond to the DaemonVolumes. These volume mounts are shared by most all Ceph daemon containers, both init and standard.
func DaemonVolumes ¶ added in v1.0.0
func DaemonVolumes(dataPaths *config.DataPathMap, keyringResourceName string) []v1.Volume
DaemonVolumes returns the pod volumes used by all Ceph daemons.
func PodLabels ¶
PodLabels returns pod labels common to all Rook-Ceph pods which may be useful for admins. App name is the name of the application: e.g., 'rook-ceph-mon', 'rook-ceph-mgr', etc. Daemon type is the Ceph daemon type: "mon", "mgr", "osd", "mds", "rgw" Daemon ID is the ID portion of the Ceph daemon name: "a" for "mon.a"; "c" for "mds.c"
func PodVolumes ¶
PodVolumes fills in the volumes parameter with the common list of Kubernetes volumes for use in Ceph pods.
func RookVolumeMounts ¶
func RookVolumeMounts() []v1.VolumeMount
RookVolumeMounts returns the common list of Kubernetes volume mounts for Rook containers.
func StoredLogVolume ¶ added in v1.0.0
StoredLogVolume returns a pod volume sourced from the stored log files.
func StoredLogVolumeMount ¶ added in v1.0.0
func StoredLogVolumeMount() v1.VolumeMount
StoredLogVolumeMount returns a pod volume sourced from the stored log files.
Types ¶
This section is empty.