From 5295889df32818d5cc044a6bb9ecf56e06e82c14 Mon Sep 17 00:00:00 2001 From: Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com> Date: Fri, 24 Jan 2025 03:45:32 +0530 Subject: [PATCH] Update circuit_breaker.md --- content/en/docs/userguide/circuit_breaker.md | 23 +++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/content/en/docs/userguide/circuit_breaker.md b/content/en/docs/userguide/circuit_breaker.md index ea883df..e2747f3 100644 --- a/content/en/docs/userguide/circuit_breaker.md +++ b/content/en/docs/userguide/circuit_breaker.md @@ -83,21 +83,18 @@ spec: Apply the circuit breaker configuration: ```yaml # circuit-breaker.yaml -apiVersion: networking.istio.io/v1alpha3 -kind: DestinationRule +apiVersion: kmesh.net/v1alpha1 +kind: CircuitBreaker metadata: name: test-circuit-breaker spec: - host: test-service - trafficPolicy: - connectionPool: - http: - http1MaxPendingRequests: 1 - maxRequestsPerConnection: 1 - outlierDetection: - consecutive5xxErrors: 3 - interval: 5s - baseEjectionTime: 30s + service: test-service + rules: + - priority: HIGH + maxConnections: 10 + maxPendingRequests: 5 + maxRequests: 20 + maxRetries: 3 ``` Apply the configurations: @@ -213,4 +210,4 @@ kubectl describe destinationrule test-circuit-breaker ```bash kubectl logs deploy/test-service kubectl logs deploy/fortio -``` \ No newline at end of file +```