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>
This commit is contained in:
parent
f56db19385
commit
77af94df2f
3 changed files with 41 additions and 1 deletions
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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+: {
|
||||
|
|
Loading…
Add table
Reference in a new issue