Galley Configuration Problems
Seemingly valid configuration is rejected
Manually verify your configuration is correct, cross-referencing Istio API reference1 when necessary.
Invalid configuration is accepted
Verify the istio-galley
validationwebhookconfiguration
exists and
is correct. The apiVersion
, apiGroup
, and resource
of the
invalid configuration should be listed in one of the two webhooks
entries.
If the validatingwebhookconfiguration
doesn’t exist, verify the
istio-galley-configuration
configmap
exists. istio-galley
uses
the data from this configmap to create and update the
validatingwebhookconfiguration
.
If the webhook array in istio-galley-configuration
is empty, verify
the galley.enabled
and global.configValidation
installation options are
set.
The istio-galley
validation configuration is fail-close. If
configuration exists and is scoped properly, the webhook will be
invoked. A missing caBundle
, bad certificate, or network connectivity
problem will produce an error message when the resource is
created/updated. If you don’t see any error message and the webhook
wasn’t invoked and the webhook configuration is valid, your cluster is
misconfigured.
Creating configuration fails with x509 certificate errors
x509: certificate signed by unknown authority
related errors are
typically caused by an empty caBundle
in the webhook
configuration. Verify that it is not empty (see verify webhook
configuration). The
istio-galley
deployment consciously reconciles webhook configuration
used the istio-galley-configuration
configmap
and root certificate
mounted from istio.istio-galley-service-account
secret in the
istio-system
namespace.
Verify the
istio-galley
pod(s) are running:Verify you’re using Istio version >= 1.0.0. Older version of Galley did not properly re-patch the
caBundle
. This typically happened when theistio.yaml
was re-applied, overwriting a previously patchedcaBundle
.Check the Galley pod logs for errors. Failing to patch the
caBundle
should print an error.If the patching failed, verify the RBAC configuration for Galley:
istio-galley
needsvalidatingwebhookconfigurations
write access to create and update theistio-galley
validatingwebhookconfiguration
.
Creating configuration fails with no such hosts
or no endpoints available
errors
Validation is fail-close. If the istio-galley
pod is not ready,
configuration cannot be created and updated. In such cases you’ll see
an error about no endpoints available
.
Verify the istio-galley
pod(s) are running and endpoints are ready.
If the pods or endpoints aren’t ready, check the pod logs and status for any indication about why the webhook pod is failing to start and serve traffic.