diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-04-24 22:59:03 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-04-25 05:55:29 +0000 |
commit | be7994a6cc4b6b686b353e3b2e935a06850fb653 (patch) | |
tree | b2c65baad936d7961e95dba7a6cc10c8edec332f /ci | |
parent | 7cedf5645ab74c069aec3d2d0332524d537ee33f (diff) |
modfied to install kubectl snap and create softlink to run the
command
Change-Id: I3a89247eb0307ab25ce8b9106c8d26c272b46195
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
(cherry picked from commit f279ae4f3a71aa9319f0cba90cd9e437a35c1d5d)
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/k8.sh | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -4,7 +4,15 @@ 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 + +if [ ! -f /snap/kubectl/current/kubectl ]; then + sudo snap install kubectl --classic +fi + +if [ ! -f ./kubectl ]; then + ln -s /snap/kubectl/current/kubectl ./kubectl +fi + ./kubectl cluster-info || true juju config kubernetes-master enable-dashboard-addons=true || true #./kubectl proxy |