From 4ac7edb2a765f411f89198b8b5e8234c87a1a1e3 Mon Sep 17 00:00:00 2001 From: m1093782566 Date: Thu, 2 Nov 2017 11:49:05 +0800 Subject: [PATCH] update readme in ipvs proxy --- pkg/proxy/ipvs/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkg/proxy/ipvs/README.md b/pkg/proxy/ipvs/README.md index 74cbd348e6d..6b225a68650 100644 --- a/pkg/proxy/ipvs/README.md +++ b/pkg/proxy/ipvs/README.md @@ -35,7 +35,17 @@ Kube-proxy will run in iptables mode by default in a [local-up cluster](https:// Users should export the env `KUBEPROXY_MODE=ipvs` to specify the ipvs mode before deploying the cluster if want to run kube-proxy in ipvs mode. -// TODO: 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/). + +Since IPVS mode is still feature-gated, users should add the flag `--feature-gates=SupportIPVSProxyMode=true` in `kubeadm init` command + +``` +kubeadm init --feature-gates=SupportIPVSProxyMode=true +``` + +to specify the ipvs mode before deploying the cluster if want to run kube-proxy in ipvs mode. #### Test @@ -51,4 +61,3 @@ TCP 10.0.0.1:443 rr persistent 10800 TCP 10.0.0.10:53 rr UDP 10.0.0.10:53 rr ``` -