• Kubernetes Submit Queue's avatar
    Merge pull request #63696 from grosskur/gce-advertise-addr · e392f5b0
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    gce: Prefer MASTER_ADVERTISE_ADDRESS in apiserver setup
    
    MASTER_ADVERTISE_ADDRESS is used to set the --advertise-address flag
    for the apiserver. It's useful for running the apiserver behind a load
    balancer.
    
    However, if PROJECT_ID, TOKEN_URL, TOKEN_BODY, and NODE_NETWORK are
    all set, the GCE VM's external IP address will be fetched and used
    instead and MASTER_ADVERTISE_ADDRESS will be ignored.
    
    Change this behavior so that MASTER_ADVERTISE_ADDRESS takes precedence
    because it's more specific. We still fall back to using the VM's
    external IP address if the other variables are set.
    
    Also: Move the setting of --ssh-user and --ssh-keyfile based on
    PROXY_SSH_USER) to a top-level block because this is common to all
    codepaths.
    
    ```release-note
    NONE
    ```
    e392f5b0
Name
Last commit
Last update
..
addons Loading commit data...
centos Loading commit data...
gce Loading commit data...
images Loading commit data...
juju Loading commit data...
kubemark Loading commit data...
kubernetes-anywhere Loading commit data...
local Loading commit data...
log-dump Loading commit data...
pre-existing Loading commit data...
skeleton Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
clientbin.sh Loading commit data...
common.sh Loading commit data...
get-kube-binaries.sh Loading commit data...
get-kube-local.sh Loading commit data...
get-kube.sh Loading commit data...
kube-down.sh Loading commit data...
kube-up.sh Loading commit data...
kube-util.sh Loading commit data...
kubeadm.sh Loading commit data...
kubectl.sh Loading commit data...
restore-from-backup.sh Loading commit data...
test-e2e.sh Loading commit data...
test-network.sh Loading commit data...
test-smoke.sh Loading commit data...
update-storage-objects.sh Loading commit data...
validate-cluster.sh Loading commit data...