-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcanary.yaml
44 lines (44 loc) · 1.02 KB
/
canary.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: flagger.app/v1alpha3
kind: Canary
metadata:
name: hello-world-dispatch
namespace: hello-world
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: hello-world-dispatch
autoscalerRef:
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
name: hello-world-dispatch
service:
gateways:
- public-gateway.istio-system.svc.cluster.local
hosts:
- '*'
port: 80
retries:
attempts: 3
perTryTimeout: 1s
retryOn: gateway-error,connect-failure,refused-stream
targetPort: 8080
trafficPolicy:
tls:
mode: ISTIO_MUTUAL
progressDeadlineSeconds: 60
canaryAnalysis:
interval: 1m
maxWeight: 50
metrics:
- interval: 1m
name: request-success-rate
threshold: 99
stepWeight: 25
threshold: 5
webhooks:
- metadata:
cmd: hey -z 1m -q 10 -c 2 http://hello-world-dispatch-canary.hello-world:80/
name: load-test
timeout: 5s
url: http://flagger-loadtester.kubeaddons-flagger/