Skip to content

Commit

Permalink
Promote EgressSeparateSubnet feature to Beta
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Luo <[email protected]>
  • Loading branch information
luolanzone committed Feb 8, 2025
1 parent 9a03925 commit 37df1c2
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion build/charts/antrea/conf/antrea-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ featureGates:
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "EgressTrafficShaping" "default" false) }}

# Allow users to allocate Egress IPs from a different subnet from the default Node subnet.
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "EgressSeparateSubnet" "default" false) }}
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "EgressSeparateSubnet" "default" true) }}

# Allow users to apply ClusterNetworkPolicy to Kubernetes Nodes.
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "NodeNetworkPolicy" "default" false) }}
Expand Down
6 changes: 3 additions & 3 deletions build/yamls/antrea-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4069,7 +4069,7 @@ data:
# EgressTrafficShaping: false
# Allow users to allocate Egress IPs from a different subnet from the default Node subnet.
# EgressSeparateSubnet: false
# EgressSeparateSubnet: true
# Allow users to apply ClusterNetworkPolicy to Kubernetes Nodes.
# NodeNetworkPolicy: false
Expand Down Expand Up @@ -5443,7 +5443,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: e9ed628a60f731498979612c9d28080dc89b4f54b1dcbb5e86fce29df7c482f1
checksum/config: 1ec763bb1191c1e3a6db560410872c7ff1f642e4e6da443fd4ebbdfb25a2a7bf
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -5687,7 +5687,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: e9ed628a60f731498979612c9d28080dc89b4f54b1dcbb5e86fce29df7c482f1
checksum/config: 1ec763bb1191c1e3a6db560410872c7ff1f642e4e6da443fd4ebbdfb25a2a7bf
labels:
app: antrea
component: antrea-controller
Expand Down
6 changes: 3 additions & 3 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4069,7 +4069,7 @@ data:
# EgressTrafficShaping: false
# Allow users to allocate Egress IPs from a different subnet from the default Node subnet.
# EgressSeparateSubnet: false
# EgressSeparateSubnet: true
# Allow users to apply ClusterNetworkPolicy to Kubernetes Nodes.
# NodeNetworkPolicy: false
Expand Down Expand Up @@ -5443,7 +5443,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: e9ed628a60f731498979612c9d28080dc89b4f54b1dcbb5e86fce29df7c482f1
checksum/config: 1ec763bb1191c1e3a6db560410872c7ff1f642e4e6da443fd4ebbdfb25a2a7bf
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -5688,7 +5688,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: e9ed628a60f731498979612c9d28080dc89b4f54b1dcbb5e86fce29df7c482f1
checksum/config: 1ec763bb1191c1e3a6db560410872c7ff1f642e4e6da443fd4ebbdfb25a2a7bf
labels:
app: antrea
component: antrea-controller
Expand Down
6 changes: 3 additions & 3 deletions build/yamls/antrea-gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4069,7 +4069,7 @@ data:
# EgressTrafficShaping: false
# Allow users to allocate Egress IPs from a different subnet from the default Node subnet.
# EgressSeparateSubnet: false
# EgressSeparateSubnet: true
# Allow users to apply ClusterNetworkPolicy to Kubernetes Nodes.
# NodeNetworkPolicy: false
Expand Down Expand Up @@ -5443,7 +5443,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: adf1e0f238974d7f83bd321a403f1613ae7e695f06b5366cee645a39141872db
checksum/config: 74db7a5b8c53e8e3caa3552d1af11a0d4b1566cece33d95c02e6f2c5c793804d
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -5685,7 +5685,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: adf1e0f238974d7f83bd321a403f1613ae7e695f06b5366cee645a39141872db
checksum/config: 74db7a5b8c53e8e3caa3552d1af11a0d4b1566cece33d95c02e6f2c5c793804d
labels:
app: antrea
component: antrea-controller
Expand Down
6 changes: 3 additions & 3 deletions build/yamls/antrea-ipsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4082,7 +4082,7 @@ data:
# EgressTrafficShaping: false
# Allow users to allocate Egress IPs from a different subnet from the default Node subnet.
# EgressSeparateSubnet: false
# EgressSeparateSubnet: true
# Allow users to apply ClusterNetworkPolicy to Kubernetes Nodes.
# NodeNetworkPolicy: false
Expand Down Expand Up @@ -5456,7 +5456,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 9b14e08a59181e975a2326f4ef4a7c55a1640027bda93ad0ee09fe2ef18b7491
checksum/config: 185ab34d7ef5ade3c0bd3e5308fe0fe9946ff181c0f02e5d8d10b71e3513f1d9
checksum/ipsec-secret: d0eb9c52d0cd4311b6d252a951126bf9bea27ec05590bed8a394f0f792dcb2a4
labels:
app: antrea
Expand Down Expand Up @@ -5744,7 +5744,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 9b14e08a59181e975a2326f4ef4a7c55a1640027bda93ad0ee09fe2ef18b7491
checksum/config: 185ab34d7ef5ade3c0bd3e5308fe0fe9946ff181c0f02e5d8d10b71e3513f1d9
labels:
app: antrea
component: antrea-controller
Expand Down
6 changes: 3 additions & 3 deletions build/yamls/antrea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4069,7 +4069,7 @@ data:
# EgressTrafficShaping: false
# Allow users to allocate Egress IPs from a different subnet from the default Node subnet.
# EgressSeparateSubnet: false
# EgressSeparateSubnet: true
# Allow users to apply ClusterNetworkPolicy to Kubernetes Nodes.
# NodeNetworkPolicy: false
Expand Down Expand Up @@ -5443,7 +5443,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: afc566f7a719f6dd3ff30e3b495df2e4f5991e5a8d0696f891dc9c77ce795e2f
checksum/config: 2ca5bf5b7cdc5071a9e2bade3e7dbe2c2bdd87d559ea7c48f204859c146887e3
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -5685,7 +5685,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: afc566f7a719f6dd3ff30e3b495df2e4f5991e5a8d0696f891dc9c77ce795e2f
checksum/config: 2ca5bf5b7cdc5071a9e2bade3e7dbe2c2bdd87d559ea7c48f204859c146887e3
labels:
app: antrea
component: antrea-controller
Expand Down
12 changes: 6 additions & 6 deletions docs/egress.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ spec:
network-role: egress-gateway
```

**Note**: Specifying different subnets is currently in alpha version. To use
this feature, users should enable the `EgressSeparateSubnet` feature gate.
Currently, the maximum number of different subnets that can be supported in a
cluster is 20, which should be sufficient for most cases. If you need to have
more subnets, please raise an issue with your use case, and we will consider
revising the limit based on that.
**Note**: Specifying different subnets is enabled by default since Antrea v2.3.
To use this feature in any previous releases, users should enable the `EgressSeparateSubnet`
feature gate. Currently, the maximum number of different subnets that can be
supported in a cluster is 20, which should be sufficient for most cases. If you
need to have more subnets, please raise an issue with your use case, and we will
consider revising the limit based on that.

### NodeSelector

Expand Down
2 changes: 1 addition & 1 deletion docs/feature-gates.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ edit the Agent configuration in the
| `L7NetworkPolicy` | Agent + Controller | `false` | Alpha | v1.10 | N/A | N/A | Yes | |
| `AdminNetworkPolicy` | Controller | `false` | Alpha | v1.13 | N/A | N/A | Yes | |
| `EgressTrafficShaping` | Agent | `false` | Alpha | v1.14 | N/A | N/A | Yes | OVS meters should be supported |
| `EgressSeparateSubnet` | Agent | `false` | Alpha | v1.15 | N/A | N/A | No | |
| `EgressSeparateSubnet` | Agent | `true` | Beta | v1.15 | v2.3 | N/A | No | |
| `NodeNetworkPolicy` | Agent | `false` | Alpha | v1.15 | N/A | N/A | Yes | |
| `L7FlowExporter` | Agent | `false` | Alpha | v1.15 | N/A | N/A | Yes | |
| `BGPPolicy` | Agent | `false` | Alpha | v2.1 | N/A | N/A | No | |
Expand Down
2 changes: 1 addition & 1 deletion pkg/apiserver/handlers/featuregates/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func Test_getGatesResponse(t *testing.T) {
{Component: "agent", Name: "BGPPolicy", Status: "Disabled", Version: "ALPHA"},
{Component: "agent", Name: "CleanupStaleUDPSvcConntrack", Status: cleanupStaleUDPSvcConntrackStatus, Version: "BETA"},
{Component: "agent", Name: "Egress", Status: egressStatus, Version: "BETA"},
{Component: "agent", Name: "EgressSeparateSubnet", Status: "Disabled", Version: "ALPHA"},
{Component: "agent", Name: "EgressSeparateSubnet", Status: "Enabled", Version: "BETA"},
{Component: "agent", Name: "EgressTrafficShaping", Status: "Disabled", Version: "ALPHA"},
{Component: "agent", Name: "EndpointSlice", Status: "Enabled", Version: "GA"},
{Component: "agent", Name: "ExternalNode", Status: "Disabled", Version: "ALPHA"},
Expand Down
3 changes: 2 additions & 1 deletion pkg/features/antrea_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const (
EgressTrafficShaping featuregate.Feature = "EgressTrafficShaping"

// alpha: v1.15
// beta: v2.3
// Allow users to allocate Egress IPs from a different subnet from the default Node subnet.
EgressSeparateSubnet featuregate.Feature = "EgressSeparateSubnet"

Expand Down Expand Up @@ -218,7 +219,7 @@ var (
LoadBalancerModeDSR: {Default: false, PreRelease: featuregate.Alpha},
AdminNetworkPolicy: {Default: false, PreRelease: featuregate.Alpha},
EgressTrafficShaping: {Default: false, PreRelease: featuregate.Alpha},
EgressSeparateSubnet: {Default: false, PreRelease: featuregate.Alpha},
EgressSeparateSubnet: {Default: true, PreRelease: featuregate.Beta},
NodeNetworkPolicy: {Default: false, PreRelease: featuregate.Alpha},
L7FlowExporter: {Default: false, PreRelease: featuregate.Alpha},
NodeLatencyMonitor: {Default: false, PreRelease: featuregate.Alpha},
Expand Down

0 comments on commit 37df1c2

Please sign in to comment.