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