summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-03-02 21:58:54 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-03-02 21:58:54 -0600
commit386516f2fd70f78b50fadf902aeac08ea97f1347 (patch)
tree7b3327855a05c3da681d0371f9731bfa8075a44b /ci
parent7ac0e07096523e0b8a25f8017297a8b0b2c08ab5 (diff)
enabling the binding for etcd as it is deployed in lxd now.
Change-Id: I68cfc7b5d7eb35255cbd1f87ee07228e9cfac57a Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rw-r--r--ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml b/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml
index bd5ce815..c8747edd 100644
--- a/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml
+++ b/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml
@@ -5,6 +5,10 @@
{% else %}
num_units: 1
{% endif %}
+{% if os.service.bindings %}
+ bindings:
+ "": internal-api
+{% endif %}
to:
{% if k8.feature.loadbalancer %}
{% for unit_id in to_select() %}