Configuration

There is few configurations which is available in Redis operator which can be used as per use case.

Mode

Mode of the redis setup.

Available Options:-

  • cluster - For cluster mode setup of redis

  • standalone - For standalone setup of redis

mode: cluster

Size

Size of the redis cluster pods.

Available Options:-

  • A valid integer

size: 3

Global

In the global section, we define similar configurations across the redis nodes.

  global:
    image: opstree/redis:v2.0
    imagePullPolicy: IfNotPresent
    password: "Opstree@1234"
    resources:
      requests:
        cpu: 100m
        memory: 128Mi
      limits:
        cpu: 100m
        memory: 128Mi

Master

Configuration specific to master nodes of Redis

Slave

Configuration specific to slave nodes of Redis

Redis Exporter

Redis Exporter Configurations.

Storage

Storage definition for redis nodes

Priority Class

Name of the Kubernetes priority class which you want to associate with redis setup

Node Selector

Map of the labels which you want to use as nodeSelector.

Security Context

Kubernetes security context for redis pods

Affinity

Node and pod affinity for redis pods

Last updated

Was this helpful?