Created
May 13, 2019 14:36
-
-
Save surajssd/006ab8664eb7de4313b1ab6dc6ffc390 to your computer and use it in GitHub Desktop.
flagger canary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: flagger.app/v1alpha3 | |
kind: Canary | |
metadata: | |
name: podinfo | |
namespace: test | |
spec: | |
# deployment reference | |
targetRef: | |
apiVersion: apps/v1 | |
kind: Deployment | |
name: podinfo | |
# the maximum time in seconds for the canary deployment | |
# to make progress before it is rollback (default 600s) | |
progressDeadlineSeconds: 60 | |
# HPA reference (optional) | |
autoscalerRef: | |
apiVersion: autoscaling/v2beta1 | |
kind: HorizontalPodAutoscaler | |
name: podinfo | |
service: | |
# container port | |
port: 9898 | |
# Istio gateways (optional) | |
gateways: | |
- public-gateway.istio-system.svc.cluster.local | |
- mesh | |
# Istio virtual service host names (optional) | |
hosts: | |
- '*' | |
canaryAnalysis: | |
# schedule interval (default 60s) | |
interval: 1m | |
# max number of failed metric checks before rollback | |
threshold: 5 | |
# max traffic percentage routed to canary | |
# percentage (0-100) | |
maxWeight: 50 | |
# canary increment step | |
# percentage (0-100) | |
stepWeight: 10 | |
metrics: | |
- name: request-success-rate | |
# minimum req success rate (non 5xx responses) | |
# percentage (0-100) | |
threshold: 99 | |
interval: 1m | |
- name: request-duration | |
# maximum req duration P99 | |
# milliseconds | |
threshold: 500 | |
interval: 30s | |
# generate traffic during analysis | |
webhooks: | |
- name: load-test | |
url: http://flagger-loadtester.test/ | |
timeout: 5s | |
metadata: | |
cmd: "hey -z 1m -q 10 -c 2 http://podinfo.test:9898/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment