Make libvirt-coreos cluster use create-kubeconfig

This commit is contained in:
Lénaïc Huard
2015-04-14 10:03:12 +02:00
committed by Jeff Lowdermilk
parent 4f6dc99075
commit 08f17bfa70
3 changed files with 9 additions and 14 deletions

View File

@@ -46,7 +46,7 @@ function create-kubeconfig() {
touch "${KUBECONFIG}"
fi
local cluster_args=(
"--server=https://${KUBE_MASTER_IP}"
"--server=${KUBE_SERVER:-https://${KUBE_MASTER_IP}}"
)
if [[ -z "${CA_CERT:-}" ]]; then
cluster_args+=("--insecure-skip-tls-verify=true")