diff options
| author | Lion-Wei <liangwei14@huawei.com> | 2017-08-31 01:45:53 +0800 |
|---|---|---|
| committer | Tim Hockin <thockin@google.com> | 2017-08-30 10:45:53 -0700 |
| commit | 95ebdb1cee6a2d9ed9976b53a0bebb2972237e4a (patch) | |
| tree | daca136b9cb002769b2620d5084e0af000cb3025 | |
| parent | f6399e10bdf83a28ca8ca4a0fc039f9f2d910f00 (diff) | |
Update federation-clusterselector.md (#999)
| -rw-r--r-- | contributors/design-proposals/federation-clusterselector.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contributors/design-proposals/federation-clusterselector.md b/contributors/design-proposals/federation-clusterselector.md index 0a68424a..154412c7 100644 --- a/contributors/design-proposals/federation-clusterselector.md +++ b/contributors/design-proposals/federation-clusterselector.md @@ -22,7 +22,7 @@ A few examples... 1. Deploy the baz service to all prod clusters globally Currently, it's possible to control placement decision of Federated ReplicaSets -using the `federation.kubernetes.io/replica-set-preferences` annotation. This provides functionaility to change the number of ReplicaSets created on each Federated Cluster, by setting the quantity for each Cluster by Cluster Name. Since cluster names are required, in situations where clusters are add/removed from Federation it would require the object definitions to change in order to maintain the same configuration. From the example above, if a new cluster is created in Europe and added to federation, then the replica-set-preferences would need to be updated to include the new cluster name. +using the `federation.kubernetes.io/replica-set-preferences` annotation. This provides functionality to change the number of ReplicaSets created on each Federated Cluster, by setting the quantity for each Cluster by Cluster Name. Since cluster names are required, in situations where clusters are add/removed from Federation it would require the object definitions to change in order to maintain the same configuration. From the example above, if a new cluster is created in Europe and added to federation, then the replica-set-preferences would need to be updated to include the new cluster name. This proposal is to provide placement decision support for all object types using Labels on the Federated Clusters as opposed to cluster names. The matching language currently used for nodeAffinity placement decisions onto nodes can be leveraged. @@ -34,7 +34,7 @@ Carrying forward the examples from above... ## Design -The proposed design uses a ClusterSelector annotation that has a value that is parsed into a struct definition that follows the same design as the [NodeSelector type used w/ nodeAffinity](https://github.com/kubernetes/kubernetes/blob/master/pkg/api/v1/types.go#L1798) and will also use the [Matches function](https://github.com/kubernetes/apimachinery/blob/master/pkg/labels/selector.go#L172) of the apimachinery project to determine if an object should be sent on to federated clusters or not. +The proposed design uses a ClusterSelector annotation that has a value that is parsed into a struct definition that follows the same design as the [NodeSelector type used w/ nodeAffinity](https://github.com/kubernetes/kubernetes/blob/master/pkg/api/types.go#L1972) and will also use the [Matches function](https://github.com/kubernetes/apimachinery/blob/master/pkg/labels/selector.go#L172) of the apimachinery project to determine if an object should be sent on to federated clusters or not. In situations where objects are not to be forwarded to federated clusters, instead a delete api call will be made using the object definition. If the object does not exist it will be ignored. @@ -78,4 +78,4 @@ The logic to determine if an object is sent to a Federated Cluster will have two ## Open Questions 1. Should there be any special considerations for when dependant resources would not be forwarded together to a Federated Cluster. -1. How to improve usability of this feature long term. It will certainly help to give first class API support but easier ways to map labels or requirements to objects may be required.
\ No newline at end of file +1. How to improve usability of this feature long term. It will certainly help to give first class API support but easier ways to map labels or requirements to objects may be required. |
