diff --git a/redis-clusters/README.md b/redis-clusters/README.md new file mode 100644 index 0000000..45e0447 --- /dev/null +++ b/redis-clusters/README.md @@ -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 +``` diff --git a/redis-clusters/application.yaml b/redis-clusters/application.yaml new file mode 100644 index 0000000..8701d70 --- /dev/null +++ b/redis-clusters/application.yaml @@ -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