44 lines
920 B
YAML
44 lines
920 B
YAML
---
|
|
apiVersion: codemowers.io/v1alpha1
|
|
kind: ClusterRedisClass
|
|
metadata:
|
|
name: persistent
|
|
spec:
|
|
targetNamespace: redis-clusters
|
|
description: "Persistent Redis instance"
|
|
replicas: 3
|
|
storageClass: redis
|
|
podSpec:
|
|
imagePullPolicy: Never
|
|
containers:
|
|
- name: redis
|
|
image: codemowers/keydb:6.3.2
|
|
nodeSelector:
|
|
dedicated: storage
|
|
tolerations:
|
|
- effect: NoSchedule
|
|
key: dedicated
|
|
operator: Equal
|
|
value: storage
|
|
---
|
|
apiVersion: codemowers.io/v1alpha1
|
|
kind: ClusterRedisClass
|
|
metadata:
|
|
name: ephemeral
|
|
spec:
|
|
targetNamespace: redis-clusters
|
|
description: "Ephemeral Redis instance"
|
|
replicas: 3
|
|
podSpec:
|
|
imagePullPolicy: Never
|
|
containers:
|
|
- name: redis
|
|
image: codemowers/keydb:6.3.2
|
|
nodeSelector:
|
|
dedicated: storage
|
|
tolerations:
|
|
- effect: NoSchedule
|
|
key: dedicated
|
|
operator: Equal
|
|
value: storage
|