-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathzookeeper-1-controller.yaml
46 lines (46 loc) · 1.04 KB
/
zookeeper-1-controller.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: ReplicationController
metadata:
name: zookeeper-1
labels:
name: zookeeper-1
zookeeper_id: "1"
spec:
replicas: 1
selector:
name: zookeeper-1
zookeeper_id: "1"
template:
metadata:
labels:
name: zookeeper-1
zookeeper_id: "1"
service: zookeeper
spec:
containers:
- name: zookeeper
image: quay.io/ukhomeofficedigital/zookeeper:v0.0.3
imagePullPolicy: Always
resources:
limits:
memory: "512Mi"
env:
- name: ZK_SERVER_HEAP
value: "300"
- name: ZK_MYID
value: "1"
- name: ZK_NUMBER_OF_NODES
value: "3"
- name: ZK_SERVICE_NAME
value: "zookeeper"
ports:
- containerPort: 2181
- containerPort: 2888
- containerPort: 3888
volumeMounts:
- mountPath: /data
name: data
volumes:
- emptyDir: {}
name: data