Remove extra parameter kube_proxy_remove (#8158)

Signed-off-by: EDGsheryl <edgsheryl@gmail.com>
pull/8201/head
EDGsheryl 2021-11-15 16:02:48 +08:00 committed by GitHub
parent 027cbefb87
commit 4d79a55904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 12 deletions

View File

@ -295,7 +295,6 @@ To enable the eBPF dataplane support ensure you add the following to your invent
```yaml
calico_bpf_enabled: true
kube_proxy_remove: true
```
**NOTE:** there is known incompatibility in using the `kernel-kvm` kernel package on Ubuntu OSes because it is missing support for `CONFIG_NET_SCHED` which is a requirement for Calico eBPF support. When using Calico eBPF with Ubuntu ensure you run the `-generic` kernel.

View File

@ -56,16 +56,6 @@
- kube_network_plugin == 'calico'
- not ignore_assert_errors
- name: Stop if kube-proxy is enabled when using eBPF dataplane
assert:
that:
- kube_proxy_remove
msg: "kube-proxy needs to be disabled when using Calico with eBPF dataplane"
when:
- calico_bpf_enabled | default(false)
- kube_network_plugin == 'calico'
- not ignore_assert_errors
- name: Stop if unsupported version of Kubernetes
assert:
that: kube_version is version(kube_version_min_required, '>=')

View File

@ -32,6 +32,8 @@ kubeadm_init_phases_skip: >-
{{ kubeadm_init_phases_skip_default }} + [ "addon/kube-proxy" ]
{%- elif kube_network_plugin == 'cilium' and (cilium_kube_proxy_replacement is defined and cilium_kube_proxy_replacement == 'strict') -%}
{{ kubeadm_init_phases_skip_default }} + [ "addon/kube-proxy" ]
{%- elif kube_network_plugin == 'calico' and (calico_bpf_enabled is defined and calico_bpf_enabled) -%}
{{ kubeadm_init_phases_skip_default }} + [ "addon/kube-proxy" ]
{%- elif kube_proxy_remove is defined and kube_proxy_remove -%}
{{ kubeadm_init_phases_skip_default }} + [ "addon/kube-proxy" ]
{%- else -%}

View File

@ -9,7 +9,6 @@ kube_network_plugin: calico
deploy_netchecker: true
calico_bpf_enabled: true
kube_proxy_remove: true
loadbalancer_apiserver_localhost: true
use_localhost_as_kubeapi_loadbalancer: true