Make local clusters work painlessly with kubeconfig

This commit is contained in:
Jeff Lowdermilk
2015-02-12 15:04:00 -08:00
parent 18c1dfd61b
commit 61cc821506
4 changed files with 13 additions and 38 deletions

View File

@@ -98,6 +98,7 @@ cleanup()
[[ -n "${ETCD_PID-}" ]] && kill "${ETCD_PID}"
[[ -n "${ETCD_DIR-}" ]] && rm -rf "${ETCD_DIR}"
exit 0
}
@@ -160,7 +161,9 @@ Logs:
To start using your cluster, open up another terminal/tab and run:
export KUBERNETES_PROVIDER=local
cluster/kubectl.sh config set-cluster local --server=http://${API_HOST}:${API_PORT} --insecure-skip-tls-verify=true --global
cluster/kubectl.sh config set-context local --cluster=local --global
cluster/kubectl.sh config use-context local
cluster/kubectl.sh
EOF