-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Requirements and Recommendations for #591 #592
Conversation
57caaca
to
d666fd9
Compare
Signed-off-by: oldthreefeng <louisehong4168@gmail.com>
d666fd9
to
1509660
Compare
- ssh 可以访问各安装节点 | ||
- 各节点主机名不相同,并满足kubernetes的主机名要求。 | ||
- 各节点时间同步 | ||
- 网卡名称如果是不常见的,建议修改成规范的网卡名称, 如(eth.*|en.*|em.*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是加一个 ip网关作为推荐。 如果网卡奇形怪状或者多网卡, ip网关还是很有效的
name of network interface, when use calico IP_AUTODETECTION_METHOD, set your ipv4 with can-reach=192.168.0.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fannel 也是支持ip的。
--iface-regex="": regex expression to match the first interface to use (IP or name) for inter-host communication.
If unspecified, will default to the interface for the default route on the machine.
This can be specified multiple times to check each regex in order.
Returns the first match found. This option is superseded by the iface option and will only be used if nothing matches any option specified in the iface options.
calico:
can-reach=192.168.0.1
interface= eth.*|en.*|em.*
网关的写法有点问题, flannel的和 calico还不一样。。。得紧急修复一下
Signed-off-by: oldthreefeng <louisehong4168@gmail.com>
// can-reach is used by calico multi network | ||
if k8s.IsIpv4(Interface) { | ||
// can-reach is used by calico multi network , flannel has nothing to add. just Use it. | ||
if k8s.IsIpv4(Interface) && Network == "calico" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interface直接写IP是不是感觉有点奇怪,虽然参数越少越好,这也过于吝啬我感觉 哈哈。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是应对双网卡的时候, interfere没有写,用的默认的话, 可能会出现calico起不来, 使用ip网关可以有效避免这个问题
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是 我的意思是interface指定网卡名没问题,--interface 192.168.0.1 这样是不是有点奇怪,显式的加个参数会不会好点 如 类似cni-gateway这样。 interface里写ip挺歧义我觉得 像个隐藏功能 哈哈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
搞个pr改一下?
还是怎么说, 感觉参数太多了,默认是interfere,其实对于用户来说也没什么影响。 也有不安装cni的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你这么一说用这个指定IP无可厚非哈
Signed-off-by: oldthreefeng louisehong4168@gmail.com
[SKIP CI]seaols: 一句话简短描述该PR内容