From 0b0d9046d83d860c2aaaf9488cb0512b7c0401c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 2 Mar 2023 07:53:37 +0200 Subject: [PATCH] Add redis-clusters namespace --- redis-clusters/README.md | 9 +++++++ redis-clusters/application.yaml | 43 +++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 redis-clusters/README.md create mode 100644 redis-clusters/application.yaml 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