-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DestinationRule workload selector doesn't work for inbound clusters #41235
Comments
fyi @kfaseela |
Hello @lmarszal : Please see https://github.com/istio/istio/blob/master/pilot/pkg/model/sidecar.go#L577 workloadSelector is enabled only for outbound config, and for inbound config it was decided that sidecar API should be the preferred way forward. Probably I can enhance the workloadSelector documentation to clarify this behaviour, which was missed out. |
Which field of Sidecar API? |
Thanks for the clarification @kfaseela. So it looks like it's a missing feature - being able to configure a circuit breaking on an inbound cluster - rather than a bug. |
@hzxuzhonghu @lmarszal This was actually the preferred way forward for inbound config: istio/api#1754 |
Bug Description
I tried to apply following manifests to the cluster (empty minikube cluster, default istio installation with minimal profile):
When I check inbound cluster configuration I see connection pool settings are not applied:
When I remove
workloadSelector
from destination rule everything works as expected:Frankly I was always a little confused about the syntax where same destination rule is applied to both source and destination - but believe there are good reasons for that. What I'm looking for is configuring source and destination differently - configure traffic source for circuit breaking and destination just for overload prevention.
Version
The text was updated successfully, but these errors were encountered: