blob: 707e5070dec602545d9e7679545cbd9ebba32297 [file] [log] [blame]
rameshiyer2731c61d42024-01-21 14:24:03 +00001# Copyright © 2024 Nordix Foundation
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 implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15apiVersion: apps/v1
16kind: Deployment
17metadata:
18 name: zookeeper-deployment
19 labels:
20 app: zookeeper
21spec:
22 replicas: 1
23 selector:
24 matchLabels:
25 app: zookeeper
26 template:
27 metadata:
28 labels:
29 app: zookeeper
30 spec:
31 containers:
32 - name: zookeeper
33 image: confluentinc/cp-zookeeper:latest
34 ports:
35 - containerPort: 2181
36 env:
37 - name: ZOOKEEPER_CLIENT_PORT
38 value: "2181"
39 - name: ZOOKEEPER_TICK_TIME
40 value: "2000"
41
42
43---
44apiVersion: v1
45kind: Service
46metadata:
47 name: zookeeper-service
48spec:
49 selector:
50 app: zookeeper
51 ports:
52 - protocol: TCP
53 port: 2181
54 targetPort: 2181