-
Notifications
You must be signed in to change notification settings - Fork 0
/
zookeeper.pod.yaml
102 lines (102 loc) · 2.27 KB
/
zookeeper.pod.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
kind: Pod
apiVersion: v1
metadata:
name: zookeeper-myid-1
labels:
component: zookeeper
ensemble: zookeeper
myid: "1"
spec:
hostname: myid-1
subdomain: zookeeper
containers:
- name: zookeeper-server
image: everpeace/kube-zookeeper
env:
- name: "KUBE_ZK_MY_ID"
value: "1"
- name: "KUBE_ZK_MAX_SERVERS"
value: "3"
- name: "KUBE_ZK_HOSTNAME_PREFIX"
value: "myid-"
- name: "KUBE_ZK_SUB_DOMAIN"
value: zookeeper
- name: "NAMESPACE"
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: "CLUSTER_DOMAIN"
value: "cluster.local"
ports:
- containerPort: 2181
- containerPort: 2888
- containerPort: 3888
---
kind: Pod
apiVersion: v1
metadata:
name: zookeeper-myid-2
labels:
component: zookeeper
ensemble: zookeeper
myid: "2"
spec:
hostname: myid-2
subdomain: zookeeper
containers:
- name: zookeeper-server
image: everpeace/kube-zookeeper
env:
- name: "KUBE_ZK_MY_ID"
value: "2"
- name: "KUBE_ZK_MAX_SERVERS"
value: "3"
- name: "KUBE_ZK_HOSTNAME_PREFIX"
value: "myid-"
- name: "KUBE_ZK_SUB_DOMAIN"
value: zookeeper
- name: "NAMESPACE"
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: "CLUSTER_DOMAIN"
value: "cluster.local"
ports:
- containerPort: 2181
- containerPort: 2888
- containerPort: 3888
---
kind: Pod
apiVersion: v1
metadata:
name: zookeeper-myid-3
labels:
component: zookeeper
ensemble: zookeeper
myid: "3"
spec:
hostname: myid-3
subdomain: zookeeper
containers:
- name: zookeeper-server
image: everpeace/kube-zookeeper
env:
- name: "KUBE_ZK_MY_ID"
value: "3"
- name: "KUBE_ZK_MAX_SERVERS"
value: "3"
- name: "KUBE_ZK_HOSTNAME_PREFIX"
value: "myid-"
- name: "KUBE_ZK_SUB_DOMAIN"
value: zookeeper
- name: "NAMESPACE"
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: "CLUSTER_DOMAIN"
value: "cluster.local"
ports:
- containerPort: 2181
- containerPort: 2888
- containerPort: 3888