summaryrefslogtreecommitdiffstats
path: root/ci/k8.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/k8.sh')
-rwxr-xr-xci/k8.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/ci/k8.sh b/ci/k8.sh
index 3058933d..a9274227 100755
--- a/ci/k8.sh
+++ b/ci/k8.sh
@@ -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