1. 程式人生 > >cloud-native 版本的gitlab安裝一半時中斷,後該如何再次安裝

cloud-native 版本的gitlab安裝一半時中斷,後該如何再次安裝

背景

在使用 helm 安裝cloud native 版本的 gitlab 時候,有時候會中間終端操作,然後再次執行時,會報下面的錯誤

$  helm upgrade xxx gitlab-1.0.2/gitlab -f gitlab-1.0.2-values-ce.yaml
2018/10/11 16:30:58 warning: destination for global is a table. Ignoring non-table value <nil>
2018/10/11 16:30:58 warning: destination for global is a table. Ignoring non-table value <
nil> Error: UPGRADE FAILED: serviceaccounts "xxx-shared-secrets" already exists

解決問題

執行下面的命令刪除相關的內容,再次安裝即可解決問題

kubectl delete sa xxx-shared-secrets --namespace yyy
kubectl delete role xxx-shared-secrets --namespace yyy
kubectl delete rolebindings xxx-shared-secrets --namespace yyy
kubectl delete configmap xxx-shared-secrets --namespace yyy