InvalidExternalControlPlaneConfig
This message occurs when the address provided for the ingress gateway on the external control plane is not valid. The address could be invalid for several reasons including: the hostname address is malformed, the hostname cannot be resolved to an IP address via a DNS lookup, or the hostname resolves to zero IP addresses.
Example
You will receive this message:
when your cluster has the following ValidatingWebhookConfiguration
and MutatingWebhookConfiguration
(shortened for clarity) that are missing webhook URLs:
You will receive this message:
when your cluster has the following ValidatingWebhookConfiguration
and MutatingWebhookConfiguration
(shortened for clarity) that are using a hostname that cannot be resolved during a DNS lookup:
How to resolve
There are several ways to resolve these invalid configurations, depending on why the configuration is invalid.
If your webhook configurations have no URLs defined, adding valid URLs that use a hostname will resolve this warning message. Instructions on how to do that can be found here.
If your hostname cannot be resolved to an IP address via a DNS lookup, you can try running dig <your-hostname>
on your local machine to see if a DNS resolution occurs. If your local machine can resolve the hostname via a DNS lookup, your cluster may not be able to. Any security rules blocking DNS traffic could result in a failure to resolve lookups. New DNS records may take up to 72 hours to propagate across the web depending on your DNS provider and specific configuration.
If your hostname resolves to zero IP addresses, check that the webhook URLs are using the correct hostname and that your DNS provider correctly has at least one IP address for your hostname to resolve to.