Documentation ¶
Index ¶
- Constants
- func DefaultSentinelConfig(redis *v1.Redis) *apiv1.ConfigMap
- func GetMasterPodName(name string) string
- func GetMasterServiceName(name string) string
- func GetRedisMasterName(redis *v1.Redis) string
- func GetSentinelConfigMapName(name string) string
- func GetSentinelDeploymentName(name string) string
- func GetSentinelServiceName(name string) string
- func GetSlaveStatefulSetName(name string) string
- func GetVolumeMounts() []apiv1.VolumeMount
- func MasterSeedPod(owner *v1.Redis) *apiv1.Pod
- func MasterService(owner *cr.Redis) *apiv1.Service
- func MasterServiceEndpoint(owner *cr.Redis, IPAddress string) *apiv1.Endpoints
- func RedisContainer(baseImage, version string) apiv1.Container
- func RedisMaster(redis apiv1.Container) apiv1.Container
- func RedisSentinel(container apiv1.Container) apiv1.Container
- func RedisSlave(redis apiv1.Container, spec *v1.Redis) apiv1.Container
- func SentinelDeployment(owner *v1.Redis) *appsv1beta1.Deployment
- func SentinelLabelSelector(redis *v1.Redis) map[string]string
- func SentinelService(owner *cr.Redis) *apiv1.Service
- func SlaveLabelSelector(redis *v1.Redis) map[string]string
- func SlaveStatefulSet(owner *v1.Redis) *appsv1beta1.StatefulSet
Constants ¶
View Source
const ( RedisPort = 6379 RedisSentinelPort = 26379 MasterPodName = "redis-master-%s" MasterServiceName = "redis-master-%s" SentinelServiceName = "redis-sentinel-%s" SentinelDeploymentName = "redis-sentinel-%s" SlaveStatefulSetName = "redis-slave-%s" SlavePersistentVolumeClaimName = "slave-persistent-storage" OperatorLabel = "redis_operator" SentinelConfigMapName = "sentinel-config-%s" ConfigVolumeName = "config" DataVolumeName = "data" ConfigMapConfKeyName = "redis.conf" ConfMountPath = "/usr/local/etc/redis" DataMountPath = "/data" )
Variables ¶
This section is empty.
Functions ¶
func GetMasterPodName ¶
func GetMasterServiceName ¶
func GetRedisMasterName ¶
func GetSentinelServiceName ¶
func GetSlaveStatefulSetName ¶
func GetVolumeMounts ¶
func GetVolumeMounts() []apiv1.VolumeMount
func MasterServiceEndpoint ¶
func RedisContainer ¶
func SentinelDeployment ¶
func SentinelDeployment(owner *v1.Redis) *appsv1beta1.Deployment
func SlaveStatefulSet ¶
func SlaveStatefulSet(owner *v1.Redis) *appsv1beta1.StatefulSet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.