mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
apiVersion: flagger.app/v1beta1
|
|
kind: Canary
|
|
metadata:
|
|
name: podinfo
|
|
namespace: test
|
|
spec:
|
|
provider: linkerd
|
|
progressDeadlineSeconds: 600
|
|
targetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: podinfo
|
|
autoscalerRef:
|
|
apiVersion: autoscaling/v2
|
|
kind: HorizontalPodAutoscaler
|
|
name: podinfo
|
|
service:
|
|
name: podinfo
|
|
port: 80
|
|
targetPort: 9898
|
|
portName: http
|
|
portDiscovery: true
|
|
skipAnalysis: false
|
|
analysis:
|
|
interval: 15s
|
|
threshold: 10
|
|
maxWeight: 50
|
|
stepWeight: 5
|
|
metrics:
|
|
- name: request-success-rate
|
|
thresholdRange:
|
|
min: 99
|
|
interval: 1m
|
|
- name: request-duration
|
|
thresholdRange:
|
|
max: 500
|
|
interval: 30s
|
|
webhooks:
|
|
- name: conformance-test
|
|
type: pre-rollout
|
|
url: http://flagger-loadtester.test/
|
|
timeout: 15s
|
|
metadata:
|
|
type: "bash"
|
|
cmd: "curl -sd 'test' http://podinfo-canary.test/token | grep token"
|
|
- name: load-test
|
|
type: rollout
|
|
url: http://flagger-loadtester.test/
|
|
timeout: 5s
|
|
metadata:
|
|
type: cmd
|
|
cmd: "hey -z 1m -q 10 -c 2 http://podinfo-canary.test/"
|