1
0
forked from k-space/kube

Add redis-clusters namespace

This commit is contained in:
Lauri Võsandi 2023-03-02 07:53:37 +02:00
parent 2343edbe6b
commit 0b0d9046d8
2 changed files with 52 additions and 0 deletions

9
redis-clusters/README.md Normal file
View File

@ -0,0 +1,9 @@
# Redis clusters
This is namespace for Redis clusters managed by
[Codemowers' Operator Bundle](https://github.com/codemowers/operator-bundle)
```
kubectl create namespace redis-clusters
kubectl apply -n redis-clusters -f application.yaml
```

View File

@ -0,0 +1,43 @@
---
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