k3s/cluster/gce
Kubernetes Submit Queue e392f5b08b
Merge pull request #63696 from grosskur/gce-advertise-addr
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
```
2018-05-15 23:25:22 -07:00
..
addons Update addon manifests to use policy/v1beta1 and grant permissions in policy API group. 2018-04-17 14:56:55 +02:00
gci Merge pull request #63696 from grosskur/gce-advertise-addr 2018-05-15 23:25:22 -07:00
manifests Install and use crictl in gce kube-up.sh 2018-05-03 17:17:55 -07:00
BUILD Add unit test for configure-helper. 2018-04-23 12:18:57 -07:00
OWNERS Add jingax10 as both reviewer and approver in cluster/gce. 2018-02-21 22:11:32 -08:00
config-common.sh Use IP_ALIAS_SIZE to calculate and update IP_ALIAS_SIZE. Error added when ip-alias is not enabled when IP_ALIAS_SIZE is not empty. 2018-05-04 14:10:08 -07:00
config-default.sh Merge pull request #63353 from bmoyles0117/fix-stackdriver-metadata-agent-url-for-fluentd 2018-05-08 16:20:43 -07:00
config-test.sh Merge pull request #62379 from hzxuzhonghu/e2e-fix 2018-05-14 17:11:17 -07:00
cos
custom add folder named custom in gce 2018-01-05 15:36:53 -08:00
delete-stranded-load-balancers.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
list-resources.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
ubuntu
upgrade-aliases.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
upgrade.sh Move uncordon to after the node is ready 2018-05-11 09:57:04 -07:00
util.sh Merge pull request #63357 from Random-Liu/install-and-use-crictl 2018-05-15 21:18:12 -07:00