mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 06:59:03 +00:00
If we set --external-hostname, then the api server does not look in the CloudProviderOptions.DefaultExternalHost method. While we are at it, let's log an info message, so if there is a failure the operator gets a hint that they can use --external-hostname to bypass the lookup in the cloud provider. This will enable us to set the CLOUD_PROVIDER to openstack for example and not have to really run api server inside a openstack vm.