mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #90826 from cheftako/admin2
Add admin account on master for kube-up
This commit is contained in:
commit
c6b4decf6b
@ -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