Configuration
There is few configurations which is available in Redis operator which can be used as per use case.
Mode of the redis setup.
Available Options:-
- cluster - For cluster mode setup of redis
- standalone - For standalone setup of redis
mode: cluster
Size of the redis cluster pods.
Available Options:-
- A valid integer
size: 3
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
Configuration specific to master nodes of Redis
master:
service:
type: ClusterIP
Configuration specific to slave nodes of Redis
slave:
service:
type: ClusterIP
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 definition for redis nodes
storage:
volumeClaimTemplate:
spec:
storageClassName: csi-cephfs-sc
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
selector: {}
Name of the Kubernetes priority class which you want to associate with redis setup
priorityClassName: priority-100
Map of the labels which you want to use as nodeSelector.
nodeSelector:
memory: medium
Kubernetes security context for redis pods
securityContext:
runAsUser: 1000
Node and pod affinity for redis pods
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: disktype
operator: In
values:
- ssd
Last modified 3yr ago