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