Documentation ¶
Overview ¶
Package spec provides Kubernetes controller/pod/container spec items used for many Ceph daemons
Package spec provides Kubernetes controller/pod/container spec items used for many Ceph daemons
Index ¶
- Constants
- func AppLabels(appName, namespace string) map[string]string
- func CephVolumeMounts() []v1.VolumeMount
- func CreateKeyring(context *clusterd.Context, config KeyringConfig) error
- func PodLabels(appName, namespace, daemonType, daemonID string) map[string]string
- func PodVolumes(dataDirHostPath string) []v1.Volume
- func RookVolumeMounts() []v1.VolumeMount
- type KeyringConfig
Constants ¶
const ( // ConfigInitContainerName is the name which is given to the config initialization container // in all Ceph pods. ConfigInitContainerName = "config-init" )
const (
KeyringSecretKeyName = "keyring"
)
Variables ¶
This section is empty.
Functions ¶
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 CreateKeyring ¶
func CreateKeyring(context *clusterd.Context, config KeyringConfig) error
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.