mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Fix kubecfg.sh
This commit is contained in:
parent
aeea1b1e06
commit
34b240f17a
@ -26,6 +26,9 @@ if [ ! -x $CLOUDCFG ]; then
|
||||
fi
|
||||
|
||||
detect-master > /dev/null
|
||||
export KUBERNETES_MASTER=https://${KUBE_MASTER_IP}
|
||||
if [ "$KUBE_MASTER_IP" != "" ] && [ "$KUBERNETES_MASTER" == "" ]; then
|
||||
echo "Setting master to: https://${KUBE_MASTER_IP}"
|
||||
export KUBERNETES_MASTER=https://${KUBE_MASTER_IP}
|
||||
fi
|
||||
|
||||
$CLOUDCFG $@
|
||||
|
Loading…
Reference in New Issue
Block a user