0

因此,我正在试验并添加了一个将 ExternalIP 设置为最终主机 ipv6 地址的服务。

这是 Kubernetes 接受但不支持的配置,会导致 kube-proxy 失败。

从 kube-proxy 日志中:

-A KUBE-SERVICES -m comment --comment "default/frontend: external IP" -m tcp -p tcp -d 207.154.225.168/32 --dport 80 -j KUBE-MARK-MASQ
-A KUBE-SERVICES -m评论 --comment "默认/前端:外部 IP" -m tcp -p tcp -d 207.154.225.168/32 --dport 80 -m physdev !--physdev-is-in -m addrtype !--src-type LOCAL -j KUBE-SVC-GYQQTB6TY565JPRW
-A KUBE-SERVICES -m comment --comment "default/frontend: external IP" -m tcp -p tcp -d 207.154.225.168/32 --dport 80 - m addrtype --dst-type LOCAL -j KUBE-SVC-GYQQTB6TY565JPRW
-A KUBE-SERVICES -m comment --comment "default/frontend: external IP" -m tcp -p tcp -d 2a03:b0c0:3:d0: :43bb:4001/32 --dport 80 -j KUBE-MARK-MASQ
-A KUBE-SERVICES -m comment --comment "default/frontend: external IP" -m tcp -p tcp -d 2a03:b0c0:3:d0::43bb:4001/32 --dport 80 -m physdev !--physdev-is-in -m addrtype !--src-type LOCAL -j KUBE-SVC-GYQQTB6TY565JPRW

E0502 07:38:39.913815 1 proxier.go:1312] 无法执行 iptables-restore:退出状态 2(iptables-restore v1.4.21:主机/网络iptables-restore -h' 或 'iptables-restore --help'更多信息。2a03:b0c0:3:d0::43bb:4001' not found
Error occurred at line: 53 Try

这就是问题所在:没有定义“默认/前端”服务。我已明确删除它,

kubectl get services --namespace=default
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 10.3.0.1 443/TCP 3d

但是,我所有节点上的 kube-proxy 仍会尝试添加这些,这会导致在此错误之后创建的所有服务中断。

所以,问题是,我如何从我的集群中清除这个服务的幽灵?

4

1 回答 1

0

一种解决方案似乎是重新启动 API 服务器/Kubernetes 主服务器。不是一个令人愉快的,但服务至少再次工作。

于 2017-05-02T07:52:12.997 回答