From 1ac1796f3f528a190a793bb79a8d113fbe04ab8c Mon Sep 17 00:00:00 2001 From: legonzaur Date: Wed, 16 Apr 2025 22:34:15 +0200 Subject: [PATCH] add probes --- synapse.yml | 12 ++++++++++++ test.kube | 10 ---------- 2 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 test.kube diff --git a/synapse.yml b/synapse.yml index fbe6751..5beb603 100644 --- a/synapse.yml +++ b/synapse.yml @@ -71,6 +71,18 @@ spec: readOnly: true mountPath: /data/homeserver.yaml subPath: homeserver.yaml + readinessProbe: + httpGet: + path: /health + port: 8008 + initialDelaySeconds: 15 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /health + port: 8008 + initialDelaySeconds: 15 + periodSeconds: 10 volumes: - name: synapse-config configMap: diff --git a/test.kube b/test.kube deleted file mode 100644 index 25232f5..0000000 --- a/test.kube +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=A kubernetes yaml based service -Before=local-fs.target - -[Kube] -Yaml=/home/legonzaur/.config/containers/systemd/synapse.kube - -[Install] -# Start by default on boot -WantedBy=multi-user.target default.target \ No newline at end of file