summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-03-02 04:34:13 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-03-02 04:44:17 -0600
commit4a864fc3c6692f7e71537ffbaaf4f49710e088d6 (patch)
tree64fa700520f3cfdad75d58c168b37a9b19de4a0f
parent893a490ab1343e19adafc5ba6fa3d4711ec88d1c (diff)
fix the LB bundle for K8.
Change-Id: I8f6cc277d6b16f7bd19e999122f9b2967c139395 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
-rw-r--r--ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml2
-rwxr-xr-xci/k8.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml b/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml
index d79c5962..bd5ce815 100644
--- a/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml
+++ b/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml
@@ -8,7 +8,7 @@
to:
{% if k8.feature.loadbalancer %}
{% for unit_id in to_select() %}
- - "nodes/{{ unit_id }}"
+ - "lxd:nodes/0"
{% endfor %}
{% else %}
- "nodes/0"
diff --git a/ci/k8.sh b/ci/k8.sh
index b312a84e..3058933d 100755
--- a/ci/k8.sh
+++ b/ci/k8.sh
@@ -1,5 +1,7 @@
#!/bin/bash
set -ex
+juju run-action kubernetes-worker/0 microbot replicas=3
+sleep 30
mkdir -p ~/.kube || true
juju scp kubernetes-master/0:config ~/.kube/config || true
juju scp kubernetes-master/0:kubectl ./kubectl || true
@@ -10,5 +12,5 @@ juju config kubernetes-master enable-dashboard-addons=true || true
./kubectl get nodes || true
#./kubectl create -f example.yaml || true
./kubectl get pods --all-namespaces || true
-./kubectl get services --all-namespaces || true
+./kubectl get services,endpoints,ingress --all-namespaces || true
juju expose kubernetes-worker || true