IneffectiveSelector
This message occurs when a workload selector in policies
like AuthorizationPolicy
, RequestAuthentication
, Telemetry
, or
WasmPlugin
does not effectively target any pods within the Kubernetes Gateway.
Example
You will receive similar messages like:
when your policy’s selector matches a Kubernetes Gateway.
For example, when you have a Kubernetes Gateway pod like:
And there is an AuthorizationPolicy
with a selector
like:
If you have both targetRef
and selector
in the policy, this message will not occur. For example:
How to resolve
Make sure you are using the selector
field for sidecars or Istio Gateway pods, and use the targetRef
field for
Kubernetes Gateway pods. Otherwise, the policy will not be applied.
Here is an example: