X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fconfig_tpl%2Fjuju2%2Fbundlek8_tpl%2Fetcd.yaml;h=d79c5962e68816e1e82ff0dd4f19097a41a666c2;hb=cb4eccddaa4367589bc61e0ae6796bd867843d54;hp=ba99d0e9c662a5cdc969f5ca05024e050ba9e9af;hpb=735846bdb8e4623c24fc045a79ce82389fdff70c;p=joid.git diff --git a/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml b/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml index ba99d0e9..d79c5962 100644 --- a/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml +++ b/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml @@ -1,6 +1,16 @@ etcd: - charm: "./{{ ubuntu.release }}/etcd" + charm: "cs:~containers/etcd" +{% if k8.feature.loadbalancer %} + num_units: 3 +{% else %} num_units: 1 +{% endif %} to: +{% if k8.feature.loadbalancer %} +{% for unit_id in to_select() %} + - "nodes/{{ unit_id }}" +{% endfor %} +{% else %} - "nodes/0" +{% endif %}