mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Add admin account on master for kube-up
Creates a master local admin account. If you are on the master you can now run kubectl. For issue 87481.
This commit is contained in:
parent
8c4e3faed3
commit
339918d206
@ -2564,6 +2564,10 @@ function gke-master-start {
|
||||
echo "Running GKE internal configuration script"
|
||||
. "${KUBE_HOME}/bin/gke-internal-configure-helper.sh"
|
||||
gke-internal-master-start
|
||||
elif [[ -n "${KUBE_BEARER_TOKEN:-}" ]]; then
|
||||
echo "setting up local admin kubeconfig"
|
||||
create-kubeconfig "local-admin" "${KUBE_BEARER_TOKEN}"
|
||||
echo "export KUBECONFIG=/etc/srv/kubernetes/local-admin/kubeconfig" > /etc/profile.d/kubeconfig.sh
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user