kubernetes: iptables-restore: line 7 failed in kube-proxy
Is this a BUG REPORT or FEATURE REQUEST?:
Uncomment only one, leave it on its own line:
/kind bug
/sig network
What happened:
Kube-proxy (k8s.gcr.io/kube-proxy-amd64:v1.11.1) deployed as daemonset with ipvs mode produce during startup following error:
E0905 20:09:11.733419 1 proxier.go:423] Failed to execute iptables-restore for nat: exit status 1 (iptables-restore: line 7 failed
)
With verbosity -v5 the logs looks like this:
I0905 20:09:11.677674 1 iptables.go:323] running iptables-save [-t nat]
I0905 20:09:11.731479 1 iptables.go:383] running iptables-restore [-T nat --noflush --counters]
E0905 20:09:11.733419 1 proxier.go:423] Failed to execute iptables-restore for nat: exit status 1 (iptables-restore: line 7 failed
)
I0905 20:09:11.733681 1 iptables.go:323] running iptables-save [-t filter]
I0905 20:09:11.737057 1 iptables.go:383] running iptables-restore [-T filter --noflush --counters]
I0905 20:09:11.738971 1 server.go:448] Version: v1.11.1
Looks like proxier is trying to perform cleanup part: https://github.com/kubernetes/kubernetes/blob/v1.11.1/pkg/proxy/iptables/proxier.go#L423 but failed. Such error is generated only once during startup.
What you expected to happen:
Error should not exist 😃
Environment:
- Kubernetes version (use
kubectl version): 1.11.1 - Cloud provider or hardware configuration: none
- OS (e.g. from /etc/os-release): Ubuntu 16.04 LTS
- Kernel (e.g.
uname -a): - Install tools: custom script based on docker
- Others:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 20 (2 by maintainers)
same here on v1.13.2, throws this error when kube-proxy initializes.
Running on CoreOS in ipvs mode:
i update kube-proxy 1.14.2, the error message is disappear
same problem 1.13.2 ,how fix it?