forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine Endpoint selection for multi-cluster Service (antrea-io#4508)
When an Endpoint of a Multi-cluster Service is a local Service ClusterIP, change the flow action to let it go to the corresponding exported Service's group to select the endpoint. This can avoid that the traffic goes out of the OVS bridge from antrea-gw0 (and handled by kube-proxy when it is running) and comes back again. Signed-off-by: Lan Luo <luola@vmware.com>
- Loading branch information
1 parent
5846f82
commit 6cdbca3
Showing
15 changed files
with
392 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2023 Antrea Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package types | ||
|
||
import ( | ||
binding "antrea.io/antrea/pkg/ovs/openflow" | ||
k8sproxy "antrea.io/antrea/third_party/proxy" | ||
) | ||
|
||
// ServiceGroupInfo is used in AntreaProxy for Multi-cluster Service load-balancing. | ||
// It stores a local exported Service's GroupID and its ClusterIP. | ||
type ServiceGroupInfo struct { | ||
// GroupID of an exported Service. | ||
GroupID binding.GroupIDType | ||
// ClusterIP info of an exported Service. | ||
Endpoint k8sproxy.Endpoint | ||
} |
Oops, something went wrong.