Skip to content

Commit 12146dc

Browse files
committed
Create tier1-traffic-generator.yaml
1 parent ccd140a commit 12146dc

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
labels:
6+
app: trafficgenerator
7+
name: trafficgenerator
8+
namespace: gitops-bookinfo
9+
spec:
10+
progressDeadlineSeconds: 600
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: trafficgenerator
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 25%
18+
maxUnavailable: 25%
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
labels:
23+
app: trafficgenerator
24+
spec:
25+
containers:
26+
- args:
27+
- /bin/sh
28+
- -c
29+
- 'while true; do curl -i -H"Host: gitops-bookinfo.tetrate.io" gitops-tier1gw.gitops-tier1/productpage; done'
30+
image: appropriate/curl
31+
imagePullPolicy: Always
32+
name: trafficgenerator
33+
resources: {}
34+
terminationMessagePath: /dev/termination-log
35+
terminationMessagePolicy: File
36+
dnsPolicy: ClusterFirst
37+
restartPolicy: Always

0 commit comments

Comments
 (0)