-
Notifications
You must be signed in to change notification settings - Fork 275
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
楼主有没有用二进制部署过高可用集群? #48
Comments
二进制的用过,但是你说的这个问题我用的也是ipvs ,traefik用的没问题,除非你端口冲突了 |
@dotbalo 你是不是用的DaemonSet的方式?那你用hostPort就是占用了节点的443端口了. |
DaemonSet 中的 Pod 可以使用 hostPort,从而可以通过 Node IP 访问到 Pod。客户端能通过某种方法知道 Node IP 列表,并且基于此也可以知道端口。 |
hostPort和hostNetwork的最大区别是pod的IP地址不一样,hostPort使用clusterIP,但是hostNetwork使用的是Node ip。 |
@cookeem 能贴一个yaml出来对比下吗?很少用这个daemonSet |
@dotbalo ipvs这种网络模式还没有了解过。不过官方文档是有这种模式的说明 https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies In this mode, kube-proxy watches Kubernetes Services and Endpoints, calls netlink interface to create ipvs rules accordingly and syncs ipvs rules with Kubernetes Services and Endpoints periodically, to make sure ipvs status is consistent with the expectation. When Service is accessed, traffic will be redirected to one of the backend Pods. |
今天突然发现一个问题,二进制部署高可用集群,转发采用的ipvs,部署traefik如果采用hostPort模式,就会导致集群无法创建pod,楼主有没有遇到过?
The text was updated successfully, but these errors were encountered: