Skip to content

Commit 53c0ea8

Browse files
committed
Enable nftables for kube-proxy and calico
Signed-off-by: Zj12248 <minezijun@gmail.com>
1 parent 5e10c9e commit 53c0ea8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/kubeadm_init.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ configMapAndSecretChangeDetectionStrategy: "Watch"
4343
---
4444
apiVersion: kubeproxy.config.k8s.io/v1alpha1
4545
kind: KubeProxyConfiguration
46+
mode: nftables
4647
metricsBindAddress: 0.0.0.0:10249

scripts/setup/rewrite_yaml_files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ cat ../calico/calico.yaml | \
9393
(
9494
.spec.template.spec.containers[].name == "calico-node"
9595
) | .spec.template.spec.containers[0].env
96-
) |= . + [ {"name": "CALICO_IPV4POOL_CIDR", "value": "10.168.0.0/16"} ]' |
96+
) |= . + [ {"name": "CALICO_IPV4POOL_CIDR", "value": "10.168.0.0/16"}, {"name": "FELIX_IPTABLESBACKEND", "value": "NFT"} ]' |
9797
yq '
9898
(
9999
select

0 commit comments

Comments
 (0)