-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdatagen.yaml
56 lines (55 loc) · 1.17 KB
/
datagen.yaml
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
55
56
apiVersion: v1
kind: ConfigMap
metadata:
name: datagen-schema
namespace: materialize
data:
schema.json: |
[
{
"_meta": {
"topic": "mz_datagen_test"
},
"id": "iteration.index",
"name": "faker.internet.userName()"
}
]
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: datagen
namespace: materialize
spec:
replicas: 1
selector:
matchLabels:
app: datagen
template:
metadata:
labels:
app: datagen
spec:
containers:
- name: datagen
image: materialize/datagen:latest
args:
[
"datagen",
"-s", "/schemas/schema.json",
"-f", "json",
"-n", "10024",
"-w", "2000",
"-d"
]
env:
- name: KAFKA_BROKERS
value: "redpanda.materialize.svc.cluster.local:9092"
volumeMounts:
- name: datagen-schema-volume
mountPath: /schemas
readOnly: true
volumes:
- name: datagen-schema-volume
configMap:
name: datagen-schema