modified to fix kubernetes issue.
[joid.git] / ci / k8.sh
1 #!/bin/bash
2 set -ex
3 mkdir -p ~/.kube || true
4 juju scp kubernetes-master/0:config ~/.kube/config || true
5 juju scp kubernetes-master/0:kubectl ./kubectl || true
6 ./kubectl cluster-info || true
7 juju config kubernetes-master enable-dashboard-addons=true || true
8 #./kubectl proxy
9 #http://localhost:8001/ui
10 ./kubectl get nodes || true
11 #./kubectl create -f example.yaml || true
12 ./kubectl get pods --all-namespaces || true
13 ./kubectl get services --all-namespaces || true
14 juju expose kubernetes-worker || true