-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathkafka-connect.yaml
63 lines (63 loc) · 1.45 KB
/
kafka-connect.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
57
58
59
60
61
62
63
# Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafkaconnect-deploy
labels:
app: kafkaconnect
spec:
replicas: 1
selector:
matchLabels:
app: kafkaconnect
template:
metadata:
namespace: default
labels:
app: kafkaconnect
spec:
securityContext:
runAsNonRoot: true
runAsUser: 5000
containers:
- name: kafkaconnect-container
image: event-streams-samples/eventstreams-kafka-connect:latest
readinessProbe:
httpGet:
path: /
port: 8083
livenessProbe:
httpGet:
path: /
port: 8083
ports:
- containerPort: 8083
volumeMounts:
- name: connect-config
mountPath: /opt/kafka/config/connect-distributed.properties
subPath: connect-distributed.properties
- name: connect-log4j
mountPath: /opt/kafka/config/connect-log4j.properties
subPath: connect-log4j.properties
volumes:
- name: connect-config
secret:
secretName: connect-distributed-config
- name: connect-log4j
configMap:
name: connect-log4j-config
---
# Service
apiVersion: v1
kind: Service
metadata:
name: kafkaconnect-service
labels:
app: kafkaconnect
spec:
ports:
- name: kafkaconnect
protocol: TCP
port: 8083
selector:
app: kafkaconnect