app/matrix: appservice workers
This change extracts appservice workers (deployed and tested) and prepares for
federation sender workers extraction (still partially broken)
Change-Id: I2d63fe44538ea2a7c5fd492f6ce119bc35a9eb03
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1101
Reviewed-by: informatic <informatic@hackerspace.pl>
Reviewed-by: q3k <q3k@hackerspace.pl>
diff --git a/kube/redis.libsonnet b/kube/redis.libsonnet
index 6c69d2b..6cfe13b 100644
--- a/kube/redis.libsonnet
+++ b/kube/redis.libsonnet
@@ -14,6 +14,9 @@
prefix: "", # if set, should be 'foo-'
password: null,
+ # Persist data to disk
+ persistence: true,
+
image: "redis:5.0.4-alpine",
resources: {
requests: {
@@ -65,8 +68,9 @@
image: cfg.image,
args: [
"redis-server",
- "--appendonly", "yes",
- ] + (if cfg.password != null then ["--requirepass", "$(REDIS_PASSWORD)"] else []),
+ ]
+ + (if cfg.persistence then ["--appendonly", "yes"] else [])
+ + (if cfg.password != null then ["--requirepass", "$(REDIS_PASSWORD)"] else []),
ports_: {
client: { containerPort: 6379 },
},