forked from ibm-messaging/event-streams-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkafka-mirrormaker.yaml
47 lines (47 loc) · 1.25 KB
/
kafka-mirrormaker.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
# Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafkamirrormaker-deploy
labels:
app: kafkamirrormaker
spec:
replicas: 1
selector:
matchLabels:
app: kafkamirrormaker
template:
metadata:
namespace: default
labels:
app: kafkamirrormaker
spec:
securityContext:
runAsNonRoot: true
runAsUser: 5000
containers:
- name: kafkamirrormaker-container
image: ibmcom/eventstreams-kafkamirrormaker:latest
env:
- name: TOPIC_REGEX
value: "mytopic"
volumeMounts:
- name: source-config
mountPath: /opt/kafka/config/source.properties
subPath: source.properties
- name: destination-config
mountPath: /opt/kafka/config/destination.properties
subPath: destination.properties
- name: tools-log4j
mountPath: /opt/kafka/config/tools-log4j.properties
subPath: tools-log4j.properties
volumes:
- name: source-config
secret:
secretName: source-config
- name: destination-config
secret:
secretName: destination-config
- name: tools-log4j
configMap:
name: tools-log4j-config