-
Notifications
You must be signed in to change notification settings - Fork 2
/
kafka.yaml
50 lines (50 loc) · 1000 Bytes
/
kafka.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
apiVersion: v1
kind: Service
metadata:
name: kafka
labels:
app: kafka
name: kafka
spec:
ports:
- port: 9092
selector:
app: kafka
tier: middleware
clusterIP: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafka
labels:
app: kafka
spec:
selector:
matchLabels:
app: kafka
tier: middleware
strategy:
type: Recreate
template:
metadata:
labels:
app: kafka
tier: middleware
spec:
containers:
- name: kafka
image: registry.gitlab.com/mc-b/iot-kafka/cp-kafka:latest
imagePullPolicy: IfNotPresent
env:
- name: KAFKA_BROKER_ID
value: "1"
- name: KAFKA_ADVERTISED_LISTENERS
value: "PLAINTEXT://kafka:9092"
- name: KAFKA_ZOOKEEPER_CONNECT
value: "zookeeper:2181"
- name: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR
value: "1"
ports:
- containerPort: 9092
name: kafka