forked from hswaw/hscloud
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
parent
f56db19385
commit
77af94df2f
|
@ -88,6 +88,22 @@ local kube = import "../../../kube/kube.libsonnet";
|
||||||
config: { mountPath: "/config" },
|
config: { mountPath: "/config" },
|
||||||
tempdir: { mountPath: "/tmp/mediarepo_s3_upload" },
|
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,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -147,6 +147,22 @@ local kube = import "../../../kube/kube.libsonnet";
|
||||||
} + if worker.cfg.mountData then {
|
} + if worker.cfg.mountData then {
|
||||||
data: { mountPath: "/data" },
|
data: { mountPath: "/data" },
|
||||||
} else {},
|
} else {},
|
||||||
|
readinessProbe: {
|
||||||
|
httpGet: {
|
||||||
|
path: "/health",
|
||||||
|
port: "http",
|
||||||
|
},
|
||||||
|
initialDelaySeconds: 5,
|
||||||
|
periodSeconds: 10,
|
||||||
|
},
|
||||||
|
livenessProbe: {
|
||||||
|
httpGet: {
|
||||||
|
path: "/health",
|
||||||
|
port: "http",
|
||||||
|
},
|
||||||
|
initialDelaySeconds: 60,
|
||||||
|
periodSeconds: 30,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
securityContext: {
|
securityContext: {
|
||||||
|
|
|
@ -42,8 +42,16 @@ matrix {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// Synapse media worker has been replaced by matrix-media-repo deployment
|
|
||||||
synapse+: {
|
synapse+: {
|
||||||
|
genericWorker+: {
|
||||||
|
deployment+: {
|
||||||
|
spec+: {
|
||||||
|
replicas: 4,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// Synapse media worker has been replaced by matrix-media-repo deployment
|
||||||
mediaWorker+: {
|
mediaWorker+: {
|
||||||
deployment+: {
|
deployment+: {
|
||||||
spec+: {
|
spec+: {
|
||||||
|
|
Loading…
Reference in New Issue