Istio ICA考试之路---3-3

发布于:2024-05-21 ⋅ 阅读:(139) ⋅ 点赞:(1)

Istio ICA考试之路---3-3

1. 题目

Using Kubernetes context cluster-2 
Configure circuit breaker and outlier detection in the DestinationRule 
cb-destination for the host backend.cb.svc.cluster.local in the cb namespace. 
Configure as follows:

Connection pool size (HTTP1): 50
Maximum number of concurrent HTTP2 requests: 100
Maximum number of requests per connection: 5
Number of consecutive 5xx errors: 5
Host scanning interval: 3 minutes
Ejection time: 8 minutes

2. 解题

2.1 获取模板

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: reviews-cb-policy
spec:
  host: reviews.prod.svc.cluster.local
  trafficPolicy:
    connectionPool:
      tcp:
        maxConnections: 100
      http:
        http2MaxRequests: 1000
        maxRequestsPerConnection: 10
    outlierDetection:
      consecutive5xxErrors: 7
      interval: 5m
      baseEjectionTime: 15m

2.2 整理yaml

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: cb-destination
  namespace: cb
spec:
  host: backend.cb.svc.cluster.local
  trafficPolicy:
    connectionPool:
      tcp:
        maxConnections: 50
      http:
        http2MaxRequests: 100
        maxRequestsPerConnection: 5
    outlierDetection:
      consecutive5xxErrors: 5
      interval: 3m
      baseEjectionTime: 8m

这题考试时候ns下并没有资源所以也没法测,改起来也方便.只要yaml没错也就对了.


网站公告

今日签到

点亮在社区的每一天
去签到