본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Helm 업그레이드 시 workspaced entities 마이그레이션 오류 해결

원문 보기 위키 갱신

Helm 업그레이드 시 workspaced entities 마이그레이션 오류 해결 (workspaced entities custom migration)

Helm 업그레이드를 실행할 때 'This instance contains workspaced entities that need a custom migration' 오류가 나타나는 경우가 있어요. 이 오류는 대부분 오래된 Helm 차트 버전을 사용하고 있을 때 발생해요. helm repo update로 로컬 저장소를 최신 상태로 갱신한 뒤 업그레이드를 다시 실행하면 해결돼요. 이 문서에서는 오류가 발생하는 원인과 해결 절차를 명령어 예시와 함께 살펴봐요

출처: 문서

본문

TL;DR

This instance contains workspaced entities that need a custom migration 오류 때문에 Helm 업그레이드가 실패하는 이유는 무엇인가요? helm upgrade 중에 이 오류가 나타나면, 보통 오래된 Helm 차트 버전을 사용하고 있다는 뜻이에요. helm repo update로 로컬 Helm 저장소를 업데이트한 다음, 업그레이드를 다시 실행하세요.

문제

Helm 업그레이드를 실행할 때 다음과 같은 오류를 만나게 돼요:

This instance contains workspaced entities that need a custom migration.
please use the provided helpers to migrate them:
kong migrations upgrade-workspace-table vaults_beta
Error: nginx not running in prefix: /tmp/tmp.okiPjN Run with --v (verbose) or --vv (debug) for more details

{:.no-copy-code.wrap}

해결 방법

  1. Helm 저장소가 로컬에서 업데이트되어 있는지 확인하세요:

    helm repo update
    
  2. 그다음 Helm 업그레이드를 진행하세요:

    helm upgrade kong-test -f values.yaml kong/kong --set migrations.preUpgrade=true --set migrations.postUpgrade=false
    

Helm 업그레이드에 대한 자세한 내용은 Kong Helm Chart 문서에서 확인할 수 있어요.

관련 리소스

더 알아보기 (Learn more)