Skip to content

Instantly share code, notes, and snippets.

@masroorhasan
Last active July 5, 2021 10:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save masroorhasan/253f32d873595e6cb3b7475e6eed312b to your computer and use it in GitHub Desktop.
Save masroorhasan/253f32d873595e6cb3b7475e6eed312b to your computer and use it in GitHub Desktop.
apiVersion: flagger.app/v1alpha3
kind: Canary
metadata:
name: resnet-serving
spec:
# deployment reference
targetRef:
apiVersion: apps/v1
kind: Deployment
name: resnet-serving
progressDeadlineSeconds: 30
service:
port: 9000
gateways:
- resnet-serving-gateway.default.svc.cluster.local
canaryAnalysis:
interval: 1m
# max number of failed metric checks before rollback
threshold: 5
maxWeight: 30
# canary increment step
stepWeight: 10
metrics:
- name: istio_requests_total
# minimum req success rate (non 5xx responses)
threshold: 99
interval: 1m
- name: istio_request_duration_seconds_bucket
# maximum req duration (ms) P99
threshold: 500
interval: 30s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment