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

修改ectd 备份命令和备份路径均在 ansible 节点 #1191

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

itswl
Copy link
Contributor

@itswl itswl commented Nov 15, 2022

将备份文件改为 ansible 主控节点的 {{ cluster_dir }}/backup 目录。

备份命令的 endpoint 是etcd 的一个正常节点,证书文件用的 {{ cluster_dir }}/ssl 分发的证书

amd 和 arm 测试, ansible 节点安装 etcd 或未安装 etcd 均能正常使用

@itswl
Copy link
Contributor Author

itswl commented Nov 15, 2022

改在 ansible 节点备份会好一点吧。后面定时备份以及清理集群更简单点。后面写定时备份 ,也只用在ansible 主控机上操作

@gjmzj
Copy link
Collaborator

gjmzj commented Nov 16, 2022

不是,ansible控制节点不一定会安装etcd的;不能这样改

@itswl
Copy link
Contributor Author

itswl commented Nov 16, 2022

anbsible 控制节点的 不需要安装 etcd。 用的是 ansible 节点的文件

  1. { base_dir }}/bin/etcdctl eg: /etc/kubeasz/bin/etcdctl
  2. 证书文件 {{ cluster_dir }}/ssl eg: /etc/kubeasz/k8s-01/ssl
  3. 备份路径 {{ cluster_dir }}/backup eg: /etc/kubeasz/k8s-01/backup

这些路径 ansible 控制节点都有的。相当于 控制节点 连接到一个正常的 etcd 节点 备份 ,备份文件直接保存在 /etc/kubeasz/k8s-01/backup 这个目录下

@gjmzj
Copy link
Collaborator

gjmzj commented Nov 16, 2022

ok, 看到了,原来的脚本也是同样的功能,只不过先在etcd节点备份,然后在fetch到ansible控制节点;
你改动之后更加直接了👍

@gjmzj gjmzj merged commit 90a5755 into easzlab:master Nov 16, 2022
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

Successfully merging this pull request may close these issues.

2 participants