InvalidExternalControlPlaneConfig

Message NameInvalidExternalControlPlaneConfig
Message CodeIST0163
DescriptionAddress for the ingress gateway on the external control plane is not valid
LevelWarning

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:

  1. Warning [IST0163] (MutatingWebhookConfiguration istio-sidecar-injector-external-istiod testing.yml:28) The hostname () that was provided for the webhook (rev.namespace.sidecar-injector.istio.io) to reach the ingress gateway on the external control plane cluster is blank. Traffic may not flow properly.
  2. Warning [IST0163] (ValidatingWebhookConfiguration istio-validator-external-istiod testing.yml:1) The hostname () that was provided for the webhook (rev.validation.istio.io) to reach the ingress gateway on the external control plane cluster is blank. Traffic may not flow properly.

when your cluster has the following ValidatingWebhookConfiguration and MutatingWebhookConfiguration (shortened for clarity) that are missing webhook URLs:

  1. apiVersion: admissionregistration.k8s.io/v1
  2. kind: ValidatingWebhookConfiguration
  3. metadata:
  4. name: istio-validator-external-istiod
  5. webhooks:
  6. - admissionReviewVersions:
  7. - v1beta1
  8. - v1
  9. clientConfig:
  10. url:
  11. name: rev.validation.istio.io
  12. ---
  13. apiVersion: admissionregistration.k8s.io/v1
  14. kind: ValidatingWebhookConfiguration
  15. metadata:
  16. name: istiod-default-validator
  17. webhooks:
  18. - admissionReviewVersions:
  19. - v1beta1
  20. - v1
  21. clientConfig:
  22. url: https://test.com:15017/validate
  23. failurePolicy: Ignore
  24. name: validation.istio.io
  25. ---
  26. apiVersion: admissionregistration.k8s.io/v1
  27. kind: MutatingWebhookConfiguration
  28. metadata:
  29. name: istio-sidecar-injector-external-istiod
  30. webhooks:
  31. - admissionReviewVersions:
  32. - v1beta1
  33. - v1
  34. clientConfig:
  35. url:
  36. failurePolicy: Fail
  37. name: rev.namespace.sidecar-injector.istio.io
  38. - admissionReviewVersions:
  39. - v1beta1
  40. - v1
  41. clientConfig:
  42. url: https://test.com/inject/cluster/your-cluster-name/net/network1
  43. failurePolicy: Fail
  44. name: rev.object.sidecar-injector.istio.io
  45. - admissionReviewVersions:
  46. - v1beta1
  47. - v1
  48. clientConfig:
  49. url: https://test.com/inject/cluster/your-cluster-name/net/network1
  50. failurePolicy: Fail
  51. name: namespace.sidecar-injector.istio.io
  52. - admissionReviewVersions:
  53. - v1beta1
  54. - v1
  55. clientConfig:
  56. url: https://test.com/inject/cluster/your-cluster-name/net/network1
  57. failurePolicy: Fail
  58. name: object.sidecar-injector.istio.io

You will receive this message:

  1. Warning [IST0163] (ValidatingWebhookConfiguration istio-validator-external-istiod testing.yml:1) The hostname (https://thisisnotarealdomainname.com:15017/validate) that was provided for the webhook (rev.validation.istio.io) to reach the ingress gateway on the external control plane cluster cannot be resolved via a DNS lookup. Traffic may not flow properly.

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:

  1. apiVersion: admissionregistration.k8s.io/v1
  2. kind: ValidatingWebhookConfiguration
  3. metadata:
  4. name: istio-validator-external-istiod
  5. webhooks:
  6. - admissionReviewVersions:
  7. - v1beta1
  8. - v1
  9. clientConfig:
  10. url: https://thisisnotarealdomainname.com:15017/validate
  11. name: rev.validation.istio.io
  12. ---
  13. apiVersion: admissionregistration.k8s.io/v1
  14. kind: ValidatingWebhookConfiguration
  15. metadata:
  16. name: istiod-default-validator
  17. webhooks:
  18. - admissionReviewVersions:
  19. - v1beta1
  20. - v1
  21. clientConfig:
  22. url: https://test.com:15017/validate
  23. failurePolicy: Ignore
  24. name: validation.istio.io
  25. ---
  26. apiVersion: admissionregistration.k8s.io/v1
  27. kind: MutatingWebhookConfiguration
  28. metadata:
  29. name: istio-sidecar-injector-external-istiod
  30. webhooks:
  31. - admissionReviewVersions:
  32. - v1beta1
  33. - v1
  34. clientConfig:
  35. url: https://test.com/inject/cluster/your-cluster-name/net/network1
  36. failurePolicy: Fail
  37. name: rev.namespace.sidecar-injector.istio.io
  38. - admissionReviewVersions:
  39. - v1beta1
  40. - v1
  41. clientConfig:
  42. url: https://test.com/inject/cluster/your-cluster-name/net/network1
  43. failurePolicy: Fail
  44. name: rev.object.sidecar-injector.istio.io
  45. - admissionReviewVersions:
  46. - v1beta1
  47. - v1
  48. clientConfig:
  49. url: https://test.com/inject/cluster/your-cluster-name/net/network1
  50. failurePolicy: Fail
  51. name: namespace.sidecar-injector.istio.io
  52. - admissionReviewVersions:
  53. - v1beta1
  54. - v1
  55. clientConfig:
  56. url: https://test.com/inject/cluster/your-cluster-name/net/network1
  57. failurePolicy: Fail
  58. name: object.sidecar-injector.istio.io

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.