apiVersion: flagger.app/v1beta1
# HPA reference (optional)
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
# the maximum time in seconds for the canary deployment
# to make progress before it is rollback (default 600s)
progressDeadlineSeconds: 60
# container port number or name (optional)
# schedule interval (default 60s)
# max number of failed metric checks before rollback
# max traffic percentage routed to canary
# Linkerd Prometheus checks
- 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.test:9898/token | grep token"
url: http://flagger-loadtester.test/
cmd: "hey -z 2m -q 10 -c 2 http://podinfo-canary.test:9898/"