From 3075ebbf791b123fad07cab2a6dc5d0edccce716 Mon Sep 17 00:00:00 2001 From: airycanon Date: Wed, 6 Nov 2024 10:10:17 +0800 Subject: [PATCH] Add the missing health check config --- .../deployments/controller.yaml | 19 +++++++++++++++++++ .../deployments/pingsource-mt-adapter.yaml | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/config/brokers/mt-channel-broker/deployments/controller.yaml b/config/brokers/mt-channel-broker/deployments/controller.yaml index 10d35e44185..2235e02dce7 100644 --- a/config/brokers/mt-channel-broker/deployments/controller.yaml +++ b/config/brokers/mt-channel-broker/deployments/controller.yaml @@ -83,8 +83,27 @@ spec: seccompProfile: type: RuntimeDefault + livenessProbe: + httpGet: + path: /health + port: probes + scheme: HTTP + initialDelaySeconds: 20 + periodSeconds: 10 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /readiness + port: probes + scheme: HTTP + initialDelaySeconds: 20 + periodSeconds: 10 + timeoutSeconds: 5 + ports: - name: metrics containerPort: 9090 - name: profiling containerPort: 8008 + - name: probes + containerPort: 8080 diff --git a/config/core/deployments/pingsource-mt-adapter.yaml b/config/core/deployments/pingsource-mt-adapter.yaml index 33469bdf2d8..0f62925c305 100644 --- a/config/core/deployments/pingsource-mt-adapter.yaml +++ b/config/core/deployments/pingsource-mt-adapter.yaml @@ -87,6 +87,8 @@ spec: - containerPort: 9090 name: metrics protocol: TCP + - name: probes + containerPort: 8080 resources: requests: cpu: 125m @@ -104,4 +106,21 @@ spec: seccompProfile: type: RuntimeDefault + livenessProbe: + httpGet: + path: /health + port: probes + scheme: HTTP + initialDelaySeconds: 20 + periodSeconds: 10 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /readiness + port: probes + scheme: HTTP + initialDelaySeconds: 20 + periodSeconds: 10 + timeoutSeconds: 5 + serviceAccountName: pingsource-mt-adapter