1 # Copyright 2021 Canonical Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: legal@canonical.com
18 # To get in touch with the maintainers, please contact:
19 # osm-charmers@lists.launchpad.net
25 image: %(docker_image_path)s
30 initialDelaySeconds: 10
37 initialDelaySeconds: 20
39 - containerPort: %(client-port)s
41 - containerPort: %(server-port)s
43 - containerPort: %(leader-election-port)s
46 ALLOW_ANONYMOUS_LOGIN: 'yes'
51 --servers=%(zookeeper-units)s \
52 --data_dir=/var/lib/zookeeper/data \
53 --data_log_dir=/var/lib/zookeeper/data/log \
54 --conf_dir=/opt/zookeeper/conf \
55 --client_port=%(client-port)s \
56 --election_port=%(leader-election-port)s \
57 --server_port=%(server-port)s \
62 --max_client_cnxns=60 \
63 --snap_retain_count=3 \
65 --max_session_timeout=40000 \
66 --min_session_timeout=4000 \
73 # - "zookeeper-ready 2181"
74 # initialDelaySeconds: 10
83 # - "zookeeper-ready 2181"
84 # initialDelaySeconds: 20