1
0
Fork 0

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>
master
informatic 2021-09-16 22:17:58 +02:00 committed by informatic
parent f56db19385
commit 77af94df2f
3 changed files with 41 additions and 1 deletions

View File

@ -88,6 +88,22 @@ local kube = import "../../../kube/kube.libsonnet";
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,
},
},
},
},

View File

@ -147,6 +147,22 @@ local kube = import "../../../kube/kube.libsonnet";
} + if worker.cfg.mountData then {
data: { mountPath: "/data" },
} else {},
readinessProbe: {
httpGet: {
path: "/health",
port: "http",
},
initialDelaySeconds: 5,
periodSeconds: 10,
},
livenessProbe: {
httpGet: {
path: "/health",
port: "http",
},
initialDelaySeconds: 60,
periodSeconds: 30,
},
},
},
securityContext: {

View File

@ -42,8 +42,16 @@ matrix {
},
},
// Synapse media worker has been replaced by matrix-media-repo deployment
synapse+: {
genericWorker+: {
deployment+: {
spec+: {
replicas: 4,
},
},
},
// Synapse media worker has been replaced by matrix-media-repo deployment
mediaWorker+: {
deployment+: {
spec+: {