From 017c69f33d94beac0a0833bc63d1f3ac2f2dfcd7 Mon Sep 17 00:00:00 2001 From: Mateusz Oleksy Date: Sun, 22 Nov 2026 00:24:04 +0100 Subject: [PATCH] chore: add health checks --- compose.yaml | 6 ++++++ k8s/control-plane.yaml | 20 ++++++++++++++++++++ k8s/data-plane.yaml | 10 +++++++++- k8s/intent-engine-backend.yaml | 22 +++++++++++++++++++++- k8s/intent-engine-frontend.yaml | 10 ++++++++++ 5 files changed, 66 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 58d4c47..c4a976e 100644 --- a/compose.yaml +++ b/compose.yaml @@ -6,12 +6,18 @@ name: chronos services: control-plane: image: ghcr.io/chronos-packet-scheduler/control-plane:latest + ports: + - "8080:8080" intent-engine-backend: image: ghcr.io/chronos-packet-scheduler/intent-engine-backend:latest + ports: + - "8000:8000" intent-engine-frontend: image: ghcr.io/chronos-packet-scheduler/intent-engine-frontend:latest + ports: + - "3000:3000" depends_on: - intent-engine-backend diff --git a/k8s/control-plane.yaml b/k8s/control-plane.yaml index 0f929ba..6c35a27 100644 --- a/k8s/control-plane.yaml +++ b/k8s/control-plane.yaml @@ -18,3 +18,23 @@ spec: - name: control-plane image: ghcr.io/chronos-packet-scheduler/control-plane:latest imagePullPolicy: Always + ports: + - containerPort: 8080 + livenessProbe: + httpGet: + path: /healthz + port: 8080 + readinessProbe: + httpGet: + path: /healthz + port: 8080 +--- +apiVersion: v1 +kind: Service +metadata: + name: control-plane +spec: + selector: + app: control-plane + ports: + - port: 8080 diff --git a/k8s/data-plane.yaml b/k8s/data-plane.yaml index 089541e..026c4d7 100644 --- a/k8s/data-plane.yaml +++ b/k8s/data-plane.yaml @@ -22,4 +22,12 @@ spec: - name: IFACE value: eth0 securityContext: - privileged: true \ No newline at end of file + privileged: true + livenessProbe: + httpGet: + path: /healthz + port: 9445 + readinessProbe: + httpGet: + path: /healthz + port: 9445 diff --git a/k8s/intent-engine-backend.yaml b/k8s/intent-engine-backend.yaml index 07e0c41..365d386 100644 --- a/k8s/intent-engine-backend.yaml +++ b/k8s/intent-engine-backend.yaml @@ -17,4 +17,24 @@ spec: containers: - name: intent-engine-backend image: ghcr.io/chronos-packet-scheduler/intent-engine-backend:latest - imagePullPolicy: Always \ No newline at end of file + imagePullPolicy: Always + ports: + - containerPort: 8000 + livenessProbe: + httpGet: + path: /healthz + port: 8000 + readinessProbe: + httpGet: + path: /healthz + port: 8000 +--- +apiVersion: v1 +kind: Service +metadata: + name: intent-engine-backend +spec: + selector: + app: intent-engine-backend + ports: + - port: 8000 diff --git a/k8s/intent-engine-frontend.yaml b/k8s/intent-engine-frontend.yaml index 2e2c0cf..9c7b4fc 100644 --- a/k8s/intent-engine-frontend.yaml +++ b/k8s/intent-engine-frontend.yaml @@ -18,6 +18,16 @@ spec: - name: intent-engine-frontend image: ghcr.io/chronos-packet-scheduler/intent-engine-frontend:latest imagePullPolicy: Always + ports: + - containerPort: 3000 + livenessProbe: + httpGet: + path: /healthz + port: 3000 + readinessProbe: + httpGet: + path: /healthz + port: 3000 --- apiVersion: v1 kind: Service