diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-01-25 17:47:43 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-01-25 17:48:25 -0600 |
commit | 7188808f4521feb83e828b14479db8df70c60a7b (patch) | |
tree | d44b5fc600eeaa283134992e56bacc603d13b780 /ci/k8.sh | |
parent | 5cb0ea7a1b2473a1969e48eff41ff50d540c53bd (diff) |
modified to fix kubernetes issue.
Change-Id: Ib9d90bc171836aa83f455d6727c9a1457b5fd400
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/k8.sh')
-rwxr-xr-x | ci/k8.sh | 14 |
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 |