From c515d9ff8e31a4a8a9a23973d81e5737509b56da Mon Sep 17 00:00:00 2001 From: Matthias Wessendorf Date: Fri, 6 Nov 2020 04:57:25 +0100 Subject: [PATCH] Adding readynessProbe Signed-off-by: Matthias Wessendorf --- .../mt-channel-broker/deployments/broker-filter.yaml | 6 ++++-- .../mt-channel-broker/deployments/broker-ingress.yaml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/brokers/mt-channel-broker/deployments/broker-filter.yaml b/config/brokers/mt-channel-broker/deployments/broker-filter.yaml index 6b07a6fb069..13bce767bf7 100644 --- a/config/brokers/mt-channel-broker/deployments/broker-filter.yaml +++ b/config/brokers/mt-channel-broker/deployments/broker-filter.yaml @@ -34,16 +34,18 @@ spec: - name: filter terminationMessagePolicy: FallbackToLogsOnError image: ko://knative.dev/eventing/cmd/mtbroker/filter - livenessProbe: + readinessProbe: &probe failureThreshold: 3 httpGet: path: /healthz port: 8080 scheme: HTTP - initialDelaySeconds: 5 periodSeconds: 2 successThreshold: 1 timeoutSeconds: 1 + livenessProbe: + <<: *probe + initialDelaySeconds: 5 resources: requests: cpu: 100m diff --git a/config/brokers/mt-channel-broker/deployments/broker-ingress.yaml b/config/brokers/mt-channel-broker/deployments/broker-ingress.yaml index d342e4b6f83..d95bcc84aac 100644 --- a/config/brokers/mt-channel-broker/deployments/broker-ingress.yaml +++ b/config/brokers/mt-channel-broker/deployments/broker-ingress.yaml @@ -34,16 +34,18 @@ spec: - name: ingress terminationMessagePolicy: FallbackToLogsOnError image: ko://knative.dev/eventing/cmd/mtbroker/ingress - livenessProbe: + readinessProbe: &probe failureThreshold: 3 httpGet: path: /healthz port: 8080 scheme: HTTP - initialDelaySeconds: 5 periodSeconds: 2 successThreshold: 1 timeoutSeconds: 1 + livenessProbe: + <<: *probe + initialDelaySeconds: 5 resources: requests: cpu: 100m