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

建议优化删除角色node逻辑 #690

Closed
sunnoy opened this issue Sep 4, 2019 · 1 comment
Closed

建议优化删除角色node逻辑 #690

sunnoy opened this issue Sep 4, 2019 · 1 comment

Comments

@sunnoy
Copy link

sunnoy commented Sep 4, 2019

etcd和node在一起的时候如果需要删除etcd数量就会吧node搞坏,建议优化该task

- name: clean etcd {{ ETCD_TO_DEL }} if possible
  | shell: "ansible-playbook {{ base_dir }}/roles/clean/clean_node.yml \
  | -e NODE_TO_CLEAN={{ ETCD_TO_DEL }} \
  | -e DEL_ETCD=yes >> /tmp/ansible-`date +'%Y%m%d%H%M%S'`.log 2>&1 \
  | \|\| echo 'data not cleaned on {{ ETCD_TO_DEL }}'"
  | register: CLEAN_STATUS
 

@gjmzj
Copy link
Collaborator

gjmzj commented Sep 8, 2019

感谢反馈🙏
我看了下删除etcd服务,原先把/etc/kubernetes/ssl 目录也删除了,所以会影响node服务,已提交commmit 468a96c
应该已经解决这个问题了。

@sunnoy sunnoy closed this as completed Oct 10, 2019
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