Skip to content

Commit c6b4dec

Browse files
authored
Merge pull request kubernetes#90826 from cheftako/admin2
Add admin account on master for kube-up
2 parents 90f7ae5 + 339918d commit c6b4dec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cluster/gce/gci/configure-helper.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,6 +2564,10 @@ function gke-master-start {
25642564
echo "Running GKE internal configuration script"
25652565
. "${KUBE_HOME}/bin/gke-internal-configure-helper.sh"
25662566
gke-internal-master-start
2567+
elif [[ -n "${KUBE_BEARER_TOKEN:-}" ]]; then
2568+
echo "setting up local admin kubeconfig"
2569+
create-kubeconfig "local-admin" "${KUBE_BEARER_TOKEN}"
2570+
echo "export KUBECONFIG=/etc/srv/kubernetes/local-admin/kubeconfig" > /etc/profile.d/kubeconfig.sh
25672571
fi
25682572
}
25692573

0 commit comments

Comments
 (0)