From 0c105e52249db9b4984b4f8097f04562b8c54bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E4=BD=B3=E5=B8=86?= <452531855@qq.com> Date: Mon, 7 Sep 2026 15:48:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(network-agent):=20=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E5=8A=A0=20NET=5FADMIN=20=E8=83=BD=E5=8A=9B=E2=80=94=E2=80=94a?= =?UTF-8?q?gent=20=E6=B8=85=E9=99=A4=E5=88=87=E6=8D=A2=E9=9D=99=E6=80=81?= =?UTF-8?q?=E5=90=8E=E6=AE=8B=E7=95=99=E7=9A=84=E5=8A=A8=E6=80=81=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E9=9C=80=E8=A6=81=20ip=20addr=20del,=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E8=83=BD=E5=8A=9B=E9=9B=86=E6=97=A0=E6=AD=A4=E6=9D=83?= =?UTF-8?q?=E9=99=90=E8=A2=AB=E9=9D=99=E9=BB=98=E6=8B=92=E7=BB=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mixingx-network-agent/templates/daemonset.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release-charts/mixingx-network-agent/templates/daemonset.yaml b/release-charts/mixingx-network-agent/templates/daemonset.yaml index f3851d2..656be18 100644 --- a/release-charts/mixingx-network-agent/templates/daemonset.yaml +++ b/release-charts/mixingx-network-agent/templates/daemonset.yaml @@ -52,9 +52,12 @@ spec: value: {{ .Values.k3sRestartOnIpChange | quote }} securityContext: # 只需 root + D-Bus socket,无需 privileged + # NET_ADMIN: 清除切换静态后残留的动态地址(ip addr del 需要此能力) runAsUser: 0 allowPrivilegeEscalation: false - readOnlyRootFilesystem: false + capabilities: + add: + - NET_ADMIN livenessProbe: httpGet: path: /api/network/health