-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdev-workload.dist.yml
54 lines (54 loc) · 1.07 KB
/
dev-workload.dist.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: main
image: "nginx:1.27.1-alpine"
ports:
- containerPort: 80
---
apiVersion: flagger.app/v1beta1
kind: Canary
metadata:
name: my-app
spec:
analysis:
alerts: []
interval: 30s
iterations: 1
threshold: 2
webhooks:
- metadata:
notification_context: 'Cluster: `dev-cluster`'
script: |
import http from 'k6/http';
export default function () {
http.get('http://my-app-canary.default:80/');
}
name: k6-load-test
timeout: 5m
type: pre-rollout
url: http://chart-k6-loadtester.default:8000/launch-test
service:
name: my-app-svc
port: 80
portDiscovery: true
targetPort: 80
gatewayRefs:
- name: traefik-gateway
namespace: default
targetRef:
apiVersion: apps/v1
kind: Deployment
name: my-app