summaryrefslogtreecommitdiffstats
path: root/ci/k8.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/k8.sh')
-rwxr-xr-xci/k8.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/ci/k8.sh b/ci/k8.sh
new file mode 100755
index 00000000..b312a84e
--- /dev/null
+++ b/ci/k8.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+set -ex
+mkdir -p ~/.kube || true
+juju scp kubernetes-master/0:config ~/.kube/config || true
+juju scp kubernetes-master/0:kubectl ./kubectl || true
+./kubectl cluster-info || true
+juju config kubernetes-master enable-dashboard-addons=true || true
+#./kubectl proxy
+#http://localhost:8001/ui
+./kubectl get nodes || true
+#./kubectl create -f example.yaml || true
+./kubectl get pods --all-namespaces || true
+./kubectl get services --all-namespaces || true
+juju expose kubernetes-worker || true