summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml
blob: eaea9543aad604460d1849794e277b1ca729c24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    etcd:
      charm: "./{{ ubuntu.release }}/etcd"
{% if os.kubernetes.loadbalancer %}
      num_units: 3
{% else %}
      num_units: 1
{% endif %}
      to:
{% if os.kubernetes.loadbalancer %}
{% for unit_id in to_select() %}
        - "nodes/{{ unit_id }}"
{% endfor %}
{% else %}
        - "nodes/0"
{% endif %}