From 036bf499d9194024fcb3405b9d5426d7edc06e1e Mon Sep 17 00:00:00 2001 From: "StarsL.cn" Date: Sun, 8 Oct 2023 16:59:11 +0800 Subject: [PATCH] Update readme.md --- install/k8s/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/k8s/readme.md b/install/k8s/readme.md index dc83bd4..f53e5b8 100644 --- a/install/k8s/readme.md +++ b/install/k8s/readme.md @@ -1,7 +1,7 @@ ## 2023-10-8前使用该install.sh脚本在K8S部署consul的同学请注意. 1. **完成第3步操作前不要删除consul的pod,也不要重启consul,否则会造成所有Consul KV数据丢失** 2. 使用kubectl进入conusl的容器`kubectl exec -i -t -n tensuns consul-0 -c consul -- sh -c "sh"` -3. 备份consul的KV存储数据 +3. 备份consul的KV存储数据(确保你部署的consul使用了持久化存储,以下命令会备份到持久化存储映射的目录下:`/consul/data/`.) ``` consul kv export --http-addr=http://127.0.0.1:8500 -token=$(cat /consul/config/consul.hcl|grep agent|awk -F\" '{print $2}') '' > /consul/data/consul_kv_bak.json ```