-
Notifications
You must be signed in to change notification settings - Fork 559
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
Doc: Add note on DR workloadSelector #3088
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,6 +168,12 @@ import "type/v1beta1/selector.proto"; | |
// The following example shows how a destination rule can be applied to a | ||
// specific workload using the workloadSelector configuration. | ||
// | ||
// **Note:** The workloadSelector configuration in | ||
// destination rule controls which client workloads | ||
// use this destination rule, rather than which server workloads do. | ||
// [Subsets](https://istio.io/latest/docs/reference/config/networking/destination-rule/#Subset) | ||
// can be used to select server workloads in fine granularity. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is accurate. Subsets control load balancing on the clinet-side, it doesn't impact which servers implemnent which policies. https://github.com/istio/istio/blob/388d5d1b9f37e7c3d15cf72967fad22f0b8e70fb/pilot/pkg/networking/core/v1alpha3/cluster_builder.go#L380 - no subset involved. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Subsets are used to control which servers the traffic is routed to. I'll improve the wording here to eliminate ambiguity. |
||
// | ||
// {{<tabset category-name="selector-example">}} | ||
// {{<tab name="v1alpha3" category-value="v1alpha3">}} | ||
// ```yaml | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/istio/istio/blob/388d5d1b9f37e7c3d15cf72967fad22f0b8e70fb/pilot/pkg/networking/core/v1alpha3/cluster_builder.go#L380 - SidecarScope.DestinationRule does control the server workloads?