barnard 回滚区块浏览器数据清理步骤
1.先切换到老集群
kubectl config use-context arn:aws:eks:ap-northeast-1:576184071779:cluster/starcoin2
2. 暂停barnard starcoin-indexer
先获取pod
kubectl get pods -n starcoin-barnard
NAME READY STATUS RESTARTS AGE
starcoin-indexer-deployment-544fcc458b-ncmws 1/1 Running 0 4d3h
获取pod对应的deployment
kubectl get deployment -n starcoin-barnard
NAME READY UP-TO-DATE AVAILABLE AGE
starcoin-indexer-deployment 1/1 1 1 116d
获取对应deployment配置文件
删除对应pod
3. es内更新脚本
4.恢复pod