blob: 2d119681ac0db5fa722846381e05bf2df616865b [file] [log] [blame]
Richard Jankowskid7921b72018-02-20 16:55:12 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: kafka
5 namespace: voltha
6spec:
7 clusterIP: None
8 selector:
9 app: kafka
10 ports:
11 - protocol: TCP
12 port: 9092
13 targetPort: 9092
14---
15apiVersion: apps/v1beta1
16kind: StatefulSet
17metadata:
18 name: kafka
19 namespace: voltha
20spec:
21 serviceName: kafka
22 replicas: 1
23 selector:
24 matchLabels:
25 app: kafka
26 template:
27 metadata:
28 labels:
29 app: kafka
30 annotations:
31 cni: "weave"
32 spec:
33 terminationGracePeriodSeconds: 10
34 containers:
35 - name: kafka
36 image: wurstmeister/kafka:1.0.0
37 ports:
38 - containerPort: 9092
39 env:
40 - name: KAFKA_ADVERTISED_PORT
41 value: "9092"
42 - name: KAFKA_ZOOKEEPER_CONNECT
43 value: zoo:2181
44 - name: KAFKA_HEAP_OPTS
45 value: "-Xmx256M -Xms128M"