-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkafka-manager.yaml
50 lines (50 loc) · 974 Bytes
/
kafka-manager.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-manager-svc
namespace: ephemeral-kafka
spec:
ports:
- port: 9000
protocol: TCP
selector:
service: kafka-manager
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kafka-manager
namespace: ephemeral-kafka
spec:
replicas: 1
template:
metadata:
labels:
service: kafka-manager
spec:
containers:
- env:
- name: ZK_HOSTS
value: "zookeeper-svc:2181"
image: sheepkiller/kafka-manager
name: kafka-manager
ports:
- containerPort: 9000
protocol: TCP
restartPolicy: Always
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kafka-manager
namespace: ephemeral-kafka
spec:
rules:
# any valid host for your ingress
- host: kafka-manager.demo.com
http:
paths:
- path: /
backend:
serviceName: kafka-manager-svc
servicePort: 9000