Commit 4f6b5734 authored by rongzhang's avatar rongzhang

Fix how to use ipvs mode by kubeadm

parent 9edf196c
...@@ -334,19 +334,19 @@ export KUBE_PROXY_MODE=ipvs ...@@ -334,19 +334,19 @@ export KUBE_PROXY_MODE=ipvs
### Cluster Created by Kubeadm ### Cluster Created by Kubeadm
Kube-proxy will run in iptables mode by default in a cluster deployed by [kubeadm](https://kubernetes.io/docs/setup/independent/create-cluster-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 can specify the ipvs mode adding `SupportIPVSProxyMode: true` below the `kubeProxy` field.
```json ```json
kind: MasterConfiguration
apiVersion: kubeadm.k8s.io/v1alpha1
... ...
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>`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment