app/matrix: add healthchecks, increase generic workers
Change-Id: I1605919d52c69044963082bbf094ff2ece902471
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1147
Reviewed-by: q3k <q3k@hackerspace.pl>
diff --git a/app/matrix/lib/media-repo.libsonnet b/app/matrix/lib/media-repo.libsonnet
index 286ffa7..e81c32a 100644
--- a/app/matrix/lib/media-repo.libsonnet
+++ b/app/matrix/lib/media-repo.libsonnet
@@ -88,6 +88,22 @@
config: { mountPath: "/config" },
tempdir: { mountPath: "/tmp/mediarepo_s3_upload" },
},
+ readinessProbe: {
+ httpGet: {
+ path: "/healthz",
+ port: "http",
+ },
+ initialDelaySeconds: 5,
+ periodSeconds: 10,
+ },
+ livenessProbe: {
+ httpGet: {
+ path: "/healthz",
+ port: "http",
+ },
+ initialDelaySeconds: 60,
+ periodSeconds: 30,
+ },
},
},
},