背景说明:
devops系统迁移,所以做了备份,备份数据存储在另外的服务器minio上的,迁移完成后发现恢复不了
KK版本:
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.12", GitCommit:"b058e1760c79f46a834ba59bd7a3486ecf28237d", GitTreeState:"clean", BuildDate:"2022-07-13T14:59:18Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.12", GitCommit:"b058e1760c79f46a834ba59bd7a3486ecf28237d", GitTreeState:"clean", BuildDate:"2022-07-13T14:53:39Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"
velero版本
Client:
Version: v1.10.2
Git commit: 7416504e3a8fea40f78bbc4cfefc7c642aafc812
Server:
Version: v1.10.2
备份步骤
velero backup create proline-test --include-namespaces velero-proline77v4r --kubeconfig=/root/.kube/config --namespace velero-system
mimio数据是存储成功的,且备份是complete状态
恢复命令
velero restore create --from-backup proline-test --wait --kubeconfig=/root/.kube/config --namespace velero-system
恢复也成功了,下面是相关信息,应该是正常的
could not restore, ConfigMap "kube-root-ca.crt" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, RoleBinding "admin-admin" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "admin" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "operator" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-manage-credentials" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-manage-devops-settings" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-manage-gitops-applications" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-manage-gitrepositories" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-manage-members" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-manage-pipelineruns" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-manage-pipelines" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-manage-roles" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-view-basic" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-view-credentials" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-view-gitops-applications" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-view-gitrepositories" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-view-members" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-view-pipelineruns" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-view-pipelines" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "role-template-view-roles" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, Role "viewer" already exists. Warning: the in-cluster version is different than the backed-up version.
但是恢复成功后在管理后台看不到devops工程,执行
kubectl get ns
能看到这个NS确实存在,但是去编辑里面的东西就提示不存在了,说明恢复可能不完整
kubectl edit devopsprojects.devops.kubesphere.io XXXXX
有没有大佬帮看下