> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-serverless-sft-revamp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# W&B 라이선스 및 버전 업데이트

> 다양한 설치 방법별 W&B 버전 및 라이선스 업데이트 가이드.

W\&B Server 설치 시 사용했던 것과 동일한 메소드를 사용하여 W\&B Server 버전 및 라이선스를 업데이트하세요. 다음 표는 다양한 배포 방식에 따라 라이선스와 버전을 업데이트하는 방법을 설명합니다.

| 릴리스 유형                              | 설명                                                                                                                                                                                                                                                                              |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Terraform](#update-with-terraform) | W\&B는 클라우드 배포를 위해 세 가지 공용 Terraform 모듈을 지원합니다: [AWS](https://registry.terraform.io/modules/wandb/wandb/aws/latest), [Google Cloud](https://registry.terraform.io/modules/wandb/wandb/google/latest), [Azure](https://registry.terraform.io/modules/wandb/wandb/azurerm/latest). |
| [Helm](#update-with-helm)           | [Helm Chart](https://github.com/wandb/helm-charts)를 사용하여 기존 Kubernetes 클러스터에 W\&B를 설치할 수 있습니다.                                                                                                                                                                                  |

## Terraform으로 업데이트하기

Terraform을 사용하여 라이선스와 버전을 업데이트합니다. 아래 표는 클라우드 플랫폼별 W\&B 관리 Terraform 모듈 목록입니다.

| 클라우드 제공업체    | Terraform 모듈                                                                                 |
| ------------ | -------------------------------------------------------------------------------------------- |
| AWS          | [AWS Terraform 모듈](https://registry.terraform.io/modules/wandb/wandb/aws/latest)             |
| Google Cloud | [Google Cloud Terraform 모듈](https://registry.terraform.io/modules/wandb/wandb/google/latest) |
| Azure        | [Azure Terraform 모듈](https://registry.terraform.io/modules/wandb/wandb/azurerm/latest)       |

1. 먼저, 해당 클라우드 제공업체에 맞는 W\&B 유지 관리 Terraform 모듈로 이동합니다. 위의 표를 참조하여 클라우드 제공업체에 적합한 Terraform 모듈을 찾으세요.

2. Terraform 설정 내의 `wandb_app` 모듈 설정에서 `wandb_version` 및 `license`를 업데이트합니다.

   ```hcl theme={null}
   module "wandb_app" {
       source  = "wandb/wandb/<cloud-specific-module>"
       version = "new_version"
       license       = "new_license_key" # 새로운 라이선스 키
       wandb_version = "new_wandb_version" # 원하는 W&B 버전
       ...
   }
   ```

3. `terraform plan` 및 `terraform apply` 코맨드로 Terraform 설정을 적용합니다.
   ```bash theme={null}
   terraform init
   terraform apply
   ```

4. (선택 사항) `terraform.tfvars` 또는 다른 `.tfvars` 파일을 사용하는 경우.

   새로운 W\&B 버전과 라이선스 키로 `terraform.tfvars` 파일을 업데이트하거나 생성합니다.

   ```bash theme={null}
   terraform plan -var-file="terraform.tfvars"
   ```

   설정을 적용합니다. Terraform 워크스페이스 디렉토리에서 다음을 실행하세요:

   ```bash theme={null}
   terraform apply -var-file="terraform.tfvars"
   ```

## Helm으로 업데이트하기

### spec을 사용하여 W\&B 업데이트

1. Helm 차트의 `*.yaml` 설정 파일에서 `image.tag` 및 `license` 값을 수정하여 새 버전을 지정합니다.

   ```yaml theme={null}
   license: 'new_license'
   image:
     repository: wandb/local
     tag: 'new_version'
   ```

2. 다음 코맨드를 실행하여 Helm 업그레이드를 수행합니다.

   ```bash theme={null}
   helm repo update
   helm upgrade --namespace=wandb --create-namespace \
     --install wandb wandb/wandb --version ${chart_version} \
     -f ${wandb_install_spec.yaml}
   ```

### 라이선스 및 버전을 직접 업데이트

1. 새로운 라이선스 키와 이미지 태그를 환경 변수로 설정합니다.

   ```bash theme={null}
   export LICENSE='new_license'
   export TAG='new_version'
   ```

2. 아래 코맨드로 Helm 릴리스를 업그레이드하여, 기존 설정에 새로운 값을 병합합니다.

   ```bash theme={null}
   helm repo update
   helm upgrade --namespace=wandb --create-namespace \
     --install wandb wandb/wandb --version ${chart_version} \
     --reuse-values --set license=$LICENSE --set image.tag=$TAG
   ```

자세한 내용은 공용 저장소의 [업그레이드 가이드](https://github.com/wandb/helm-charts/blob/main/upgrade)를 참조하세요.

## 관리자 UI로 업데이트하기

이 메소드는 W\&B 서버 컨테이너에 환경 변수로 라이선스가 설정되지 않은 경우에만 작동하며, 주로 Self-Managed Docker 설치 환경에서 사용됩니다.

1. [W\&B 배포 페이지](https://deploy.wandb.ai/)에서 새로운 라이선스를 취득합니다. 이때 업그레이드하려는 배포의 조직 및 배포 ID와 일치하는지 확인하세요.
2. W\&B 앱의 **License** 페이지에 엑세스합니다. **Settings** > **License**를 클릭하거나 `<host-url>/console/settings/license`로 이동합니다.
3. 라이선스 관리 섹션으로 이동합니다.
4. 새로운 라이선스 키를 입력하고 변경 사항을 저장합니다.
