Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: zoo1 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 5 | namespace: voltha |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 6 | spec: |
| 7 | clusterIP: None |
| 8 | selector: |
| 9 | app: zookeeper-1 |
| 10 | ports: |
| 11 | - name: client |
| 12 | port: 2181 |
| 13 | targetPort: 2181 |
| 14 | - name: follower |
| 15 | port: 2888 |
| 16 | targetPort: 2888 |
| 17 | - name: leader |
| 18 | port: 3888 |
| 19 | targetPort: 3888 |
| 20 | --- |
| 21 | apiVersion: v1 |
| 22 | kind: Service |
| 23 | metadata: |
| 24 | name: zoo2 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 25 | namespace: voltha |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 26 | spec: |
| 27 | clusterIP: None |
| 28 | selector: |
| 29 | app: zookeeper-2 |
| 30 | ports: |
| 31 | - name: client |
| 32 | port: 2181 |
| 33 | targetPort: 2181 |
| 34 | - name: follower |
| 35 | port: 2888 |
| 36 | targetPort: 2888 |
| 37 | - name: leader |
| 38 | port: 3888 |
| 39 | targetPort: 3888 |
| 40 | --- |
| 41 | apiVersion: v1 |
| 42 | kind: Service |
| 43 | metadata: |
| 44 | name: zoo3 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 45 | namespace: voltha |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 46 | spec: |
| 47 | clusterIP: None |
| 48 | selector: |
| 49 | app: zookeeper-3 |
| 50 | ports: |
| 51 | - name: client |
| 52 | port: 2181 |
| 53 | targetPort: 2181 |
| 54 | - name: follower |
| 55 | port: 2888 |
| 56 | targetPort: 2888 |
| 57 | - name: leader |
| 58 | port: 3888 |
| 59 | targetPort: 3888 |
| 60 | --- |
| 61 | apiVersion: apps/v1beta1 |
| 62 | kind: StatefulSet |
| 63 | metadata: |
| 64 | name: zookeeper1 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 65 | namespace: voltha |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 66 | spec: |
| 67 | serviceName: zoo1 |
| 68 | replicas: 1 |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 69 | updateStrategy: |
| 70 | type: RollingUpdate |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 71 | selector: |
| 72 | matchLabels: |
| 73 | app: zookeeper-1 |
| 74 | template: |
| 75 | metadata: |
| 76 | labels: |
| 77 | app: zookeeper-1 |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 78 | annotations: |
| 79 | cni: "weave" |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 80 | spec: |
| 81 | containers: |
| 82 | - name: zoo1 |
| 83 | image: zookeeper:3.4.11 |
| 84 | ports: |
| 85 | - containerPort: 2181 |
| 86 | - containerPort: 2888 |
| 87 | - containerPort: 3888 |
| 88 | env: |
| 89 | - name: NAMESPACE |
| 90 | valueFrom: |
| 91 | fieldRef: |
| 92 | fieldPath: metadata.namespace |
| 93 | - name: ZOO_MY_ID |
| 94 | value: "1" |
| 95 | - name: ZOO_SERVERS |
| 96 | value: > |
| 97 | server.1=zookeeper1-0.zoo1.$(NAMESPACE).svc.cluster.local:2888:3888 |
| 98 | server.2=zookeeper2-0.zoo2.$(NAMESPACE).svc.cluster.local:2888:3888 |
| 99 | server.3=zookeeper3-0.zoo3.$(NAMESPACE).svc.cluster.local:2888:3888 |
| 100 | --- |
| 101 | apiVersion: apps/v1beta1 |
| 102 | kind: StatefulSet |
| 103 | metadata: |
| 104 | name: zookeeper2 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 105 | namespace: voltha |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 106 | spec: |
| 107 | serviceName: zoo2 |
| 108 | replicas: 1 |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 109 | updateStrategy: |
| 110 | type: RollingUpdate |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 111 | selector: |
| 112 | matchLabels: |
| 113 | app: zookeeper-2 |
| 114 | template: |
| 115 | metadata: |
| 116 | labels: |
| 117 | app: zookeeper-2 |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 118 | annotations: |
| 119 | cni: "weave" |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 120 | spec: |
| 121 | containers: |
| 122 | - name: zoo2 |
| 123 | image: zookeeper:3.4.11 |
| 124 | ports: |
| 125 | - containerPort: 2181 |
| 126 | - containerPort: 2888 |
| 127 | - containerPort: 3888 |
| 128 | env: |
| 129 | - name: NAMESPACE |
| 130 | valueFrom: |
| 131 | fieldRef: |
| 132 | fieldPath: metadata.namespace |
| 133 | - name: ZOO_MY_ID |
| 134 | value: "2" |
| 135 | - name: ZOO_SERVERS |
| 136 | value: > |
| 137 | server.1=zookeeper1-0.zoo1.$(NAMESPACE).svc.cluster.local:2888:3888 |
| 138 | server.2=zookeeper2-0.zoo2.$(NAMESPACE).svc.cluster.local:2888:3888 |
| 139 | server.3=zookeeper3-0.zoo3.$(NAMESPACE).svc.cluster.local:2888:3888 |
| 140 | --- |
| 141 | apiVersion: apps/v1beta1 |
| 142 | kind: StatefulSet |
| 143 | metadata: |
| 144 | name: zookeeper3 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 145 | namespace: voltha |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 146 | spec: |
| 147 | serviceName: zoo3 |
| 148 | replicas: 1 |
Stephane Barbarie | bcea2f4 | 2018-03-02 18:46:32 -0500 | [diff] [blame] | 149 | updateStrategy: |
| 150 | type: RollingUpdate |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 151 | selector: |
| 152 | matchLabels: |
| 153 | app: zookeeper-3 |
| 154 | template: |
| 155 | metadata: |
| 156 | labels: |
| 157 | app: zookeeper-3 |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 158 | annotations: |
| 159 | cni: "weave" |
Richard Jankowski | e585808 | 2018-01-15 18:25:38 -0500 | [diff] [blame] | 160 | spec: |
| 161 | containers: |
| 162 | - name: zoo3 |
| 163 | image: zookeeper:3.4.11 |
| 164 | ports: |
| 165 | - containerPort: 2181 |
| 166 | - containerPort: 2888 |
| 167 | - containerPort: 3888 |
| 168 | env: |
| 169 | - name: NAMESPACE |
| 170 | valueFrom: |
| 171 | fieldRef: |
| 172 | fieldPath: metadata.namespace |
| 173 | - name: ZOO_MY_ID |
| 174 | value: "3" |
| 175 | - name: ZOO_SERVERS |
| 176 | value: > |
| 177 | server.1=zookeeper1-0.zoo1.$(NAMESPACE).svc.cluster.local:2888:3888 |
| 178 | server.2=zookeeper2-0.zoo2.$(NAMESPACE).svc.cluster.local:2888:3888 |
| 179 | server.3=zookeeper3-0.zoo3.$(NAMESPACE).svc.cluster.local:2888:3888 |