Redis Operator
  • Speculator: Redis Operator
  • Quickstart
  • Installation
    • Helm
    • Kubectl
  • Setup
    • Standalone
    • Cluster
    • Helm Configuration
  • Configuration
  • Development
  • Roadmap
  • Changelog
Powered by GitBook
On this page
  • Mode
  • Size
  • Global
  • Master
  • Slave
  • Redis Exporter
  • Storage
  • Priority Class
  • Node Selector
  • Security Context
  • Affinity

Was this helpful?

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

  master:
    service:
      type: ClusterIP

Slave

Configuration specific to slave nodes of Redis

  slave:
    service:
      type: ClusterIP

Redis Exporter

Redis Exporter Configurations.

  redisExporter:
    enabled: true
    image: quay.io/opstree/redis-exporter:1.0
    imagePullPolicy: Always
    resources:
      requests:
        cpu: 100m
        memory: 128Mi
      limits:
        cpu: 100m
        memory: 128Mi

Storage

Storage definition for redis nodes

  storage:
    volumeClaimTemplate:
      spec:
        storageClassName: csi-cephfs-sc
        accessModes: ["ReadWriteOnce"]
        resources:
          requests:
            storage: 1Gi
      selector: {}

Priority Class

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

priorityClassName: priority-100

Node Selector

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

nodeSelector:
  memory: medium

Security Context

Kubernetes security context for redis pods

securityContext:
  runAsUser: 1000

Affinity

Node and pod affinity for redis pods

affinity:
  nodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
      nodeSelectorTerms:
      - matchExpressions:
        - key: disktype
          operator: In
          values:
          - ssd

PreviousHelm ConfigurationNextDevelopment

Last updated 4 years ago

Was this helpful?