mongod

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MongodContainerDataDir     = "/data/db"
	MongodContainerName        = "mongod"
	MongodArbiterContainerName = "mongod-arbiter"
	MongodBackupContainerName  = "mongod-backup"
	MongodDataVolClaimName     = "mongod-data"
	MongodPortName             = "mongodb"
	MongodSecretsDir           = "/etc/mongodb-secrets"
)

Variables

This section is empty.

Functions

func GetMongodPort

func GetMongodPort(container *corev1.Container) string

GetMongodPort returns the mongod port number as a string

func GetPSMDBDockerImageName

func GetPSMDBDockerImageName(m *v1alpha1.PerconaServerMongoDB) string

GetPSMDBDockerImageName returns the prefix for the Dockerhub image name. This image name should be in the following format: percona/percona-server-mongodb-operator:<VERSION>-mongod<PSMDB-VERSION>

func NewArbiterContainer

func NewArbiterContainer(m *v1alpha1.PerconaServerMongoDB, replset *v1alpha1.ReplsetSpec, resources corev1.ResourceRequirements, runUID *int64) corev1.Container

func NewBackupContainerVolumeMounts

func NewBackupContainerVolumeMounts(m *v1alpha1.PerconaServerMongoDB, backupVolName, backupMountDir string) []corev1.VolumeMount

func NewContainerArgs

func NewContainerArgs(m *v1alpha1.PerconaServerMongoDB, replset *v1alpha1.ReplsetSpec, resources corev1.ResourceRequirements) []string

NewContainerArgs returns the args to pass to the mSpec container

func NewPodAffinity

func NewPodAffinity(ls map[string]string) *corev1.Affinity

NewPodAffinity returns an Affinity configuration that aims to avoid deploying more than one pod on the same kubelet hostname

Types

This section is empty.

Jump to

Keyboard shortcuts

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