Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipvs配置打开strictARP #1298

Closed
opszhou opened this issue Jul 21, 2023 · 3 comments
Closed

ipvs配置打开strictARP #1298

opszhou opened this issue Jul 21, 2023 · 3 comments
Labels

Comments

@opszhou
Copy link

opszhou commented Jul 21, 2023

What happened? 发生了什么问题?

本地环境部署lb时,发现ipvs缺少关于arp的可配置项。

What did you expect to happen? 期望的结果是什么?

是否可以在clusterconfig中增加配置项

How can we reproduce it (as minimally and precisely as possible)? 尽可能最小化、精确地描述如何复现问题

目前我的解决办法是,手动修改/var/lib/kube-proxy/kube-proxy-config.yaml
在最后增加:

ipvs:
  strictARP: true

重启服务

Anything else we need to know? 其他需要说明的情况

No response

Kubernetes version k8s 版本

Kubeasz version

OS version 操作系统版本

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

Related plugins (CNI, CSI, ...) and versions (if applicable) 其他网络插件等需要说明的情况

@gjmzj
Copy link
Collaborator

gjmzj commented Jul 22, 2023

你可以在 roles/kube-node/templates/kube-proxy-config.yaml.j2
这个文件中加入所需的配置,然后重新安装集群
比如添加如下:

metricsBindAddress: 0.0.0.0:10249
mode: "{{ PROXY_MODE }}"
{% if PROXY_MODE == "ipvs" %}
ipvs:
  excludeCIDRs: null
  minSyncPeriod: 0s
  scheduler: ""
  strictARP: true
{% endif %}

kubeasz pushed a commit that referenced this issue Aug 19, 2023
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Aug 21, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants