apiVersion: flagger.app/v1beta1
# the maximum time in seconds for the canary deployment
# to make progress before it is rollback (default 600s)
progressDeadlineSeconds: 60
# HPA reference (optional)
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
# container port number or name (optional)
# Istio gateways (optional)
- public-gateway.istio-system.svc.cluster.local
# Istio virtual service host names (optional)
# Istio traffic policy (optional)
# use ISTIO_MUTUAL when mTLS is enabled
# Istio retry policy (optional)
retryOn: "gateway-error,connect-failure,refused-stream"
# schedule interval (default 60s)
# max number of failed metric checks before rollback
# max traffic percentage routed to canary
- name: request-success-rate
# minimum req success rate (non 5xx responses)
# maximum req duration P99
url: http://flagger-loadtester.test/
cmd: "curl -sd 'test' http://podinfo-canary:9898/token | grep token"
url: http://flagger-loadtester.test/
cmd: "hey -z 1m -q 10 -c 2 http://podinfo-canary.test:9898/"