Add redis-clusters namespace
This commit is contained in:
parent
2343edbe6b
commit
0b0d9046d8
9
redis-clusters/README.md
Normal file
9
redis-clusters/README.md
Normal 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
|
||||
```
|
43
redis-clusters/application.yaml
Normal file
43
redis-clusters/application.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user