diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2018-02-20 12:47:15 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2018-02-20 14:20:01 -0600 |
commit | 9f8dc4af00ff76614b85727c898c51ad23d02582 (patch) | |
tree | ea7a1a9a18b4ce3954f7a78350e7abe5ddda66bc /ci/k8.sh | |
parent | 9c6d9f01489f5867ed84a9c04416ecbfce8254d0 (diff) |
modfiied to reflect the supported version only.
Change-Id: Ib8fd3588376a160a4e1c9260ed7a6b51635f6152
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/k8.sh')
-rwxr-xr-x | ci/k8.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -3,6 +3,19 @@ set -ex opnfvfeature=$1 +juju scp kubernetes-master/0:/home/ubuntu/config ~/joid_config/config + +configk8(){ +cat <<-EOF +export KUBECONFIG=~/joid_config/config +export KUBERNETES_PROVIDER=local +export KUBE_MASTER_IP=`juju status kubernetes-master --format=yaml | grep public-address | cut -d ":" -f 2 | head -1` +export KUBE_MASTER_URL=http://${KUBE_MASTER_IP}:6443 +EOF +} + +configk8 > ~/joid_config/k8config + juju run-action kubernetes-worker/0 microbot replicas=3 juju config kubernetes-master enable-dashboard-addons=true || true juju expose kubernetes-worker || true |