mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #94514 from tangwz/remove_SupportIPVSProxyMode
remove feature gate SupportIPVSProxyMode.
This commit is contained in:
commit
686ffd397f
@ -194,12 +194,6 @@ const (
|
|||||||
// Postpone deletion of a PV or a PVC when they are being used
|
// Postpone deletion of a PV or a PVC when they are being used
|
||||||
StorageObjectInUseProtection featuregate.Feature = "StorageObjectInUseProtection"
|
StorageObjectInUseProtection featuregate.Feature = "StorageObjectInUseProtection"
|
||||||
|
|
||||||
// owner: @m1093782566
|
|
||||||
// GA: v1.11
|
|
||||||
//
|
|
||||||
// Implement IPVS-based in-cluster service load balancing
|
|
||||||
SupportIPVSProxyMode featuregate.Feature = "SupportIPVSProxyMode"
|
|
||||||
|
|
||||||
// owner: @dims, @derekwaynecarr
|
// owner: @dims, @derekwaynecarr
|
||||||
// alpha: v1.10
|
// alpha: v1.10
|
||||||
// beta: v1.14
|
// beta: v1.14
|
||||||
@ -682,7 +676,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
CSINodeInfo: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.19
|
CSINodeInfo: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.19
|
||||||
BlockVolume: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.20
|
BlockVolume: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.20
|
||||||
StorageObjectInUseProtection: {Default: true, PreRelease: featuregate.GA},
|
StorageObjectInUseProtection: {Default: true, PreRelease: featuregate.GA},
|
||||||
SupportIPVSProxyMode: {Default: true, PreRelease: featuregate.GA},
|
|
||||||
SupportPodPidsLimit: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.21
|
SupportPodPidsLimit: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.21
|
||||||
SupportNodePidsLimit: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.21
|
SupportNodePidsLimit: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.21
|
||||||
HyperVContainer: {Default: false, PreRelease: featuregate.Alpha},
|
HyperVContainer: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
@ -334,29 +334,20 @@ export KUBE_PROXY_MODE=ipvs
|
|||||||
|
|
||||||
### Cluster Created by Kubeadm
|
### Cluster Created by Kubeadm
|
||||||
|
|
||||||
If you are using kubeadm with a [configuration file](https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file), you have to add `mode: ipvs` and also add `SupportIPVSProxyMode: true` below the `kubeProxy` field as part of the kubeadm configuration.
|
If you are using kubeadm with a [configuration file](https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file), you have to add `mode: ipvs` below the `kubeProxy` field as part of the kubeadm configuration.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
...
|
...
|
||||||
kubeProxy:
|
kubeProxy:
|
||||||
config:
|
config:
|
||||||
featureGates:
|
|
||||||
SupportIPVSProxyMode: true
|
|
||||||
mode: ipvs
|
mode: ipvs
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
Note that in Kubernetes 1.11 and later, `SupportIPVSProxyMode` is set to `true` by default.
|
|
||||||
|
|
||||||
before running
|
before running
|
||||||
|
|
||||||
`kube init --config <path_to_configuration_file>`
|
`kube init --config <path_to_configuration_file>`
|
||||||
|
|
||||||
If you are using Kubernetes v1.8, you can also add the flag `--feature-gates=SupportIPVSProxyMode=true` (deprecated since v1.9) in `kubeadm init` command
|
|
||||||
|
|
||||||
```
|
|
||||||
kubeadm init --feature-gates=SupportIPVSProxyMode=true
|
|
||||||
```
|
|
||||||
|
|
||||||
to specify the ipvs mode before deploying the cluster.
|
to specify the ipvs mode before deploying the cluster.
|
||||||
|
|
||||||
**Notes**
|
**Notes**
|
||||||
@ -412,14 +403,10 @@ UDP 10.0.0.10:53 rr
|
|||||||
|
|
||||||
Use the following check list to help you solve the problems:
|
Use the following check list to help you solve the problems:
|
||||||
|
|
||||||
**1. Enable IPVS feature gateway**
|
**1. Specify proxy-mode=ipvs**
|
||||||
|
|
||||||
For Kubernetes v1.10 and later, feature gate `SupportIPVSProxyMode` is set to `true` by default. However, you need to enable `--feature-gates=SupportIPVSProxyMode=true` explicitly for Kubernetes before v1.10.
|
|
||||||
|
|
||||||
**2. Specify proxy-mode=ipvs**
|
|
||||||
|
|
||||||
Check whether the kube-proxy mode has been set to `ipvs`.
|
Check whether the kube-proxy mode has been set to `ipvs`.
|
||||||
|
|
||||||
**3. Install required kernel modules and packages**
|
**2. Install required kernel modules and packages**
|
||||||
|
|
||||||
Check whether the IPVS required kernel modules have been compiled into the kernel and packages installed. (see Prerequisite)
|
Check whether the IPVS required kernel modules have been compiled into the kernel and packages installed. (see Prerequisite)
|
||||||
|
Loading…
Reference in New Issue
Block a user