forked from k-space/kube
26 lines
632 B
YAML
26 lines
632 B
YAML
|
---
|
||
|
apiVersion: codemowers.cloud/v1beta1
|
||
|
kind: RedisClass
|
||
|
metadata:
|
||
|
name: persistent
|
||
|
annotations:
|
||
|
kubernetes.io/description: "Persistent Redis instance"
|
||
|
spec:
|
||
|
reclaimPolicy: Retain
|
||
|
replicas: 3
|
||
|
storageClass: redis
|
||
|
podSpec:
|
||
|
containers:
|
||
|
- name: redis
|
||
|
image: docker.io/library/redis:7.0.11@sha256:1008c73f08e9f913868e2fa2e843212b62ea5bf3c66435d87bc7a6207bc0f1b4
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
args:
|
||
|
- --activedefrag yes
|
||
|
nodeSelector:
|
||
|
dedicated: storage
|
||
|
tolerations:
|
||
|
- effect: NoSchedule
|
||
|
key: dedicated
|
||
|
operator: Equal
|
||
|
value: storage
|