-
Notifications
You must be signed in to change notification settings - Fork 183
/
Copy pathsecure-producer-app-data.yaml
55 lines (55 loc) · 1.28 KB
/
secure-producer-app-data.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
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: elastic
namespace: source
spec:
serviceName: elastic
podManagementPolicy: Parallel
replicas: 1
selector:
matchLabels:
app: elastic
template:
metadata:
labels:
app: elastic
spec:
containers:
- name: elastic
image: confluentinc/cp-kafka:latest
command:
- /bin/sh
- -c
- |
kafka-producer-perf-test \
--topic topic-in-source \
--record-size 1024 \
--throughput 5 \
--producer.config /mnt/kafka.properties \
--num-records 100000
volumeMounts:
- name: kafka-properties
mountPath: /mnt
- name: kafka-ssl-autogenerated
mountPath: /mnt/sslcerts
resources:
requests:
memory: 512Mi # 768Mi
cpu: 500m # 1000m
volumes:
- name: kafka-properties # Create secret with name `kafka-client-config` with client configurations
secret:
secretName: kafka-client-config-secure
- name: kafka-ssl-autogenerated
secret:
secretName: kafka-generated-jks
---
apiVersion: v1
kind: Service
metadata:
name: elastic
namespace: source
spec:
clusterIP: None