Skip to content

Commit 70dd0ef

Browse files
committed
add ipvs配置打开strictARP #1298
1 parent b99b744 commit 70dd0ef

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

roles/kube-node/templates/kube-proxy-config.yaml.j2

+11
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@ healthzBindAddress: 0.0.0.0:10256
1515
hostnameOverride: "{{ K8S_NODENAME }}"
1616
metricsBindAddress: 0.0.0.0:10249
1717
mode: "{{ PROXY_MODE }}"
18+
{% if PROXY_MODE == "ipvs" %}
19+
ipvs:
20+
excludeCIDRs: null
21+
minSyncPeriod: 0s
22+
scheduler: ""
23+
strictARP: {{ ENABLE_IPVS_STRICT_ARP }}
24+
syncPeriod: 30s
25+
tcpFinTimeout: 0s
26+
tcpTimeout: 0s
27+
udpTimeout: 0s
28+
{% endif %}

roles/kube-node/vars/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ CLUSTER_DNS_SVC_IP: "{{ SERVICE_CIDR.split('.')[0] }}.{{ SERVICE_CIDR.split('.')
99

1010
# pod-max-pids
1111
POD_MAX_PIDS: 1024
12+
13+
# Enable strict ARP by setting arp_ignore to 1 and arp_announce to 2
14+
ENABLE_IPVS_STRICT_ARP: false

0 commit comments

Comments
 (0)