-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathkafka-deployment.yaml
More file actions
57 lines (57 loc) · 1.26 KB
/
Copy pathkafka-deployment.yaml
File metadata and controls
57 lines (57 loc) · 1.26 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
creationTimestamp: null
labels:
io.kompose.service: kafka
name: kafka
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: kafka
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
creationTimestamp: null
labels:
io.kompose.service: kafka
spec:
containers:
- env:
- name: KAFKA_ADVERTISED_HOST_NAME
value: kafka-service
- name: KAFKA_ADVERTISED_PORT
value: "9092"
- name: KAFKA_CREATE_TOPICS
value: order:5:1
- name: KAFKA_ZOOKEEPER_CONNECT
value: zookeeper:2181
image: wurstmeister/kafka:2.12-2.5.0
name: kafka
ports:
- containerPort: 9092
protocol: TCP
resources: {}
restartPolicy: Always
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: kafka-service
labels:
io.kompose.service: kafka
spec:
ports:
- name: kafka
port: 9092
protocol: TCP
selector:
io.kompose.service: kafka