본문 바로가기

개발하자

Kubernetes 조타 차트를 설치할 수 없습니다. 오류: 아직 사용 중인 이름을 재사용할 수 없습니다.

반응형

Kubernetes 조타 차트를 설치할 수 없습니다. 오류: 아직 사용 중인 이름을 재사용할 수 없습니다.

조타 차트는 설치할 수 없지만 조타로 생성된 원시 파일을 사용하면 kubectl apply를 통해 설치할 수 있습니다.

사용 시 다음 오류가 표시됩니다.

Error: cannot re-use a name that is still in use
helm.go:88: [debug] cannot re-use a name that is still in use
helm.sh/helm/v3/pkg/action.(*Install).availableName
        helm.sh/helm/v3/pkg/action/install.go:442
helm.sh/helm/v3/pkg/action.(*Install).Run
        helm.sh/helm/v3/pkg/action/install.go:185
main.runInstall
        helm.sh/helm/v3/cmd/helm/install.go:242
main.newInstallCmd.func2
        helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.1.3/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.1.3/command.go:960
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.1.3/command.go:897
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
        runtime/proc.go:225
runtime.goexit
        runtime/asm_amd64.s:1371

다음 명령을 사용하여 조타 장치에서 생성한 원시 파일을 설치하면 잘 작동하지만 실행하면 위의 오류가 발생합니다.

helm install myChart . --dry-run > myChart.yaml
kubectl apply -f myChart.yaml



설치 대신 업그레이드 사용:

helm upgrade -i myChart .

릴리스가 없는 경우 플래그가 설치됩니다.




다른 옵션은 다음과 같습니다.

  1. 사용 가능한 조타 차트를 나열합니다. 예:
  2. 필요한 조타 차트를 삭제합니다. 예:



나에게 효과가 있다 - 조타 제거 /<chart_name>


반응형