blob: 0e31ed48fb6a3a79e35eb66b7b323a0565c8b6d3 [file] [log] [blame]
vijaynag8339ed22019-07-25 17:10:58 +05301# Copyright 2019 TATA ELXSI
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License
15
16apiVersion: v1
17kind: Service
18metadata:
19 name: zookeeper
20spec:
21 clusterIP: None
22 ports:
23 - port: 2181
24 protocol: TCP
25 targetPort: 2181
26 selector:
27 app: zookeeper
28 type: ClusterIP
29---
30apiVersion: apps/v1
31kind: StatefulSet
32metadata:
33 name: zookeeper
34 labels:
35 app: zookeeper
36spec:
37 replicas: 1
38 serviceName: zookeeper
39 selector:
40 matchLabels:
41 app: zookeeper
42 template:
43 metadata:
44 labels:
45 app: zookeeper
46 spec:
47 containers:
48 - name: zookeeper
49 image: wurstmeister/zookeeper:latest
50 ports:
51 - containerPort: 2181
52 protocol: TCP