Skip to content
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

关于keepalived主备的疑问 #136

Open
TimeBye opened this issue Jan 7, 2019 · 2 comments
Open

关于keepalived主备的疑问 #136

TimeBye opened this issue Jan 7, 2019 · 2 comments

Comments

@TimeBye
Copy link

TimeBye commented Jan 7, 2019

你好,有幸能够了解到本项目,在搭建时有一些小疑问还请大神能够指点一下,谢谢。

  1. 在本项目进行apiserver负载的时候用到了keepalived,但是我查阅了一些资料发现都是说的priority值越大才是主节点,其余为备用节点,但本项目中priority值最小的只有一个节点
    本项目priority配置文件:
    keepalived_priority: "{% if inventory_hostname == groups['masters'][0] %}100{% else %}150{% endif %}"

    我查阅到相关文档
  1. 在本项目中keepalived部署到了所有master节点,但并没有发现在keepalived的配置中有主备切换的配置,也没有配置keepalived pod的探针,本项目中的keepalived有主备切换的相关介绍吗?

还请大神能够在百忙之中指点一二,万分感激,谢谢。

@zhangguanzhang
Copy link

全是备的

@TimeBye
Copy link
Author

TimeBye commented Mar 18, 2019

大神 我测试了一下 可以将keepalived pod的探针加上 这样就可以主备切换了
https://github.com/TimeBye/kubeadm-ha/blob/master/roles/lb/templates/keepalived.yaml.j2#L31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants