mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
Create kubeconfig for cluster secrets on other cloud providers as well
This commit is contained in:
@@ -295,7 +295,17 @@ function kube-up {
|
||||
vagrant ssh master -- sudo cat /srv/kubernetes/kubecfg.key >"${KUBE_KEY}" 2>/dev/null
|
||||
vagrant ssh master -- sudo cat /srv/kubernetes/ca.crt >"${CA_CERT}" 2>/dev/null
|
||||
|
||||
# Update the user's kubeconfig to include credentials for this apiserver.
|
||||
create-kubeconfig
|
||||
|
||||
if [[ "${FEDERATION:-}" == "true" ]]; then
|
||||
# Create a kubeconfig with credentials for this apiserver. We will later use
|
||||
# this kubeconfig to create a secret which the federation control plane can
|
||||
# use to talk to this apiserver.
|
||||
KUBECONFIG_DIR=$(dirname ${KUBECONFIG:-$DEFAULT_KUBECONFIG})
|
||||
KUBECONFIG="${KUBECONFIG_DIR}/federation/kubernetes-apiserver/${CONTEXT}/kubeconfig" \
|
||||
create-kubeconfig
|
||||
fi
|
||||
)
|
||||
|
||||
verify-cluster
|
||||
|
Reference in New Issue
Block a user