d902adf89ae596e92957b52469f8e1b30ee1695e
[joid.git] / ci / config_tpl / juju2 / bundlek8_tpl / etcd.yaml
1     etcd:
2       charm: "cs:~containers/etcd"
3 {% if k8.feature.loadbalancer %}
4 {% if k8.network.controller == 'ovn' %}
5       num_units: 1
6 {% else %}
7       num_units: 3
8 {% endif %}
9 {% else %}
10       num_units: 1
11 {% endif %}
12 {% if os.service.bindings %}
13       bindings:
14         "": internal-api
15 {% endif %}
16       to:
17 {% if k8.network.controller == 'ovn' %}
18         - "nodes/0"
19 {% else %}
20 {% if k8.feature.loadbalancer %}
21 {% for unit_id in to_select() %}
22         - "lxd:nodes/0"
23 {% endfor %}
24 {% else %}
25         - "lxd:nodes/0"
26 {% endif %}
27 {% endif %}
28