Skip to main content
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

Trident operator 또는 Helm을 사용하여 Trident 설치를 업그레이드합니다

기여자 juliantap netapp-aruldeepa netapp-dbagwell balaramesh netapp-mwallis

Trident 연산자를 사용하여 수동으로 또는 Helm을 사용하여 Trident를 업그레이드할 수 있습니다. Trident 운영자 설치에서 다른 Trident 운영자 설치로 업그레이드하거나, 설치에서 Trident 운영자 버전으로 업그레이드할 수 tridentctl 있습니다. "업그레이드 방법을 선택합니다"Trident 운영자 설치를 업그레이드하기 전에 검토하십시오.

수동 설치를 업그레이드합니다

클러스터 범위 Trident Operator 설치에서 다른 클러스터 범위 Trident Operator 설치로 업그레이드할 수 있습니다. 모든 Trident 버전은 클러스터 범위 연산자를 사용합니다.

참고 네임스페이스 범위 연산자(버전 20.07 ~ 20.10)를 사용하여 설치된 Trident에서 업그레이드하려면 Trident의 업그레이드 지침을 "설치된 버전"사용하십시오.
이 작업에 대해

Trident는 운영자를 설치하고 Kubernetes 버전에 대한 관련 오브젝트를 생성하는 데 사용할 수 있는 번들 파일을 제공합니다.

시작하기 전에

실행 중인 Kubernetes 클러스터를 사용하고 있는지 확인합니다 "지원되는 Kubernetes 버전".

단계
  1. Trident 버전 확인:

    ./tridentctl -n trident version
  2. 업데이트 operator.yaml , tridentorchestrator_cr.yaml , 그리고 post_1_25_bundle.yaml 업그레이드하려는 버전(예: 25.06)에 대한 레지스트리와 이미지 경로, 그리고 올바른 비밀번호를 사용합니다.

  3. 현재 Trident 인스턴스를 설치하는 데 사용된 Trident 연산자를 삭제합니다. 예를 들어, 25.02에서 업그레이드하는 경우 다음 명령을 실행합니다.

    kubectl delete -f 25.02.0/trident-installer/deploy/<bundle.yaml> -n trident
  4. 를 사용하여 초기 설치를 사용자 지정한 경우 TridentOrchestrator 속성을 편집할 수 있습니다 TridentOrchestrator 설치 매개 변수를 수정하는 개체입니다. 여기에는 오프라인 모드에 대해 미러링된 Trident 및 CSI 이미지 레지스트리를 지정하는 변경 사항, 디버그 로그 활성화 또는 이미지 풀 비밀을 지정하는 변경 사항이 포함될 수 있습니다.

  5. _<bundle.yaml>_이 있는 환경에 맞는 올바른 번들 YAML 파일을 사용하여 Trident 설치하세요.
    bundle_pre_1_25.yaml 또는 bundle_post_1_25.yaml Kubernetes 버전에 따라 다릅니다. 예를 들어, Trident 25.06.0을 설치하는 경우 다음 명령을 실행합니다.

    kubectl create -f 25.06.0/trident-installer/deploy/<bundle.yaml> -n trident
  6. 트라이던트 토크를 편집하여 이미지 25.06.0을 포함시킵니다.

Helm 설치를 업그레이드합니다

Trident Helm 설치를 업그레이드할 수 있습니다.

경고 Trident가 설치된 Kubernetes 클러스터를 1.24에서 1.25 이상으로 업그레이드할 true helm upgrade 경우 클러스터를 업그레이드하기 전에 value.yaml을 명령으로 설정하거나 --set excludePodSecurityPolicy=true 명령에 추가해야 excludePodSecurityPolicy 합니다.

Trident Helm을 업그레이드하지 않고 이미 Kubernetes 클러스터를 1.24에서 1.25로 업그레이드한 경우에는 Helm 업그레이드가 실패합니다. Helm 업그레이드를 진행하려면 다음 단계를 전제 조건으로 수행하십시오.

  1. 에서 helm-mapkubeapis 플러그인을 https://github.com/helm/helm-mapkubeapis 설치합니다.

  2. Trident가 설치된 네임스페이스에서 Trident 릴리스에 대해 건식 실행을 수행합니다. 정리할 리소스가 나열됩니다.

    helm mapkubeapis --dry-run trident  --namespace trident
  3. 정리 작업을 수행하려면 Helm을 사용하여 전체 실행을 수행합니다.

    helm mapkubeapis trident  --namespace trident
단계
  1. "Helm을 사용하여 Trident를 설치했습니다"를 사용하여 한 단계로 업그레이드할 수 helm upgrade trident netapp-trident/trident-operator --version 100.2506.0 있습니다. Helm repo를 추가하지 않았거나 업그레이드에 사용할 수 없는 경우:

    1. 에서 최신 Trident 릴리스를 "GitHub의 _Assets_섹션"다운로드하십시오.

    2. helm upgrade`에서 업그레이드할 버전을 반영하는 명령을 `trident-operator-25.06.0.tgz 사용합니다.

      helm upgrade <name> trident-operator-25.06.0.tgz
      참고 초기 설치 중에 사용자 정의 옵션을 설정하는 경우(예: Trident 및 CSI 이미지에 대한 전용 미러링된 레지스트리 지정) 를 추가합니다 helm upgrade 명령을 사용합니다 --set 이러한 옵션이 업그레이드 명령에 포함되도록 하려면 값이 기본값으로 재설정됩니다.
  2. 실행 helm list 차트와 앱 버전이 모두 업그레이드되었는지 확인합니다. 실행 tridentctl logs 디버그 메시지를 검토합니다.

에서 업그레이드 tridentctl Trident 운영자에 설치

에서 Trident 운영자의 최신 릴리즈로 업그레이드할 수 있습니다 tridentctl 설치: 기존 백엔드 및 PVC를 자동으로 사용할 수 있습니다.

참고 설치 방법 간에 전환하기 전에 를 참조하십시오 "설치 방법 간 이동".
단계
  1. 최신 Trident 릴리스를 다운로드합니다.

    # Download the release required [25.06.0]
    mkdir 25.06.0
    cd 25.06.0
    wget https://github.com/NetApp/trident/releases/download/v25.06.0/trident-installer-25.06.0.tar.gz
    tar -xf trident-installer-25.06.0.tar.gz
    cd trident-installer
  2. 매니페스트에서 트라이디오케스트레이터 CRD를 만듭니다.

    kubectl create -f deploy/crds/trident.netapp.io_tridentorchestrators_crd_post1.16.yaml
  3. 클러스터 범위 연산자를 같은 네임스페이스에 구현합니다.

    kubectl create -f deploy/<bundle-name.yaml>
    
    serviceaccount/trident-operator created
    clusterrole.rbac.authorization.k8s.io/trident-operator created
    clusterrolebinding.rbac.authorization.k8s.io/trident-operator created
    deployment.apps/trident-operator created
    podsecuritypolicy.policy/tridentoperatorpods created
    
    #Examine the pods in the Trident namespace
    NAME                                  READY   STATUS    RESTARTS   AGE
    trident-controller-79df798bdc-m79dc   6/6     Running   0          150d
    trident-node-linux-xrst8              2/2     Running   0          150d
    trident-operator-5574dbbc68-nthjv     1/1     Running   0          1m30s
  4. `TridentOrchestrator`Trident 설치를 위한 CR을 생성합니다.

    cat deploy/crds/tridentorchestrator_cr.yaml
    apiVersion: trident.netapp.io/v1
    kind: TridentOrchestrator
    metadata:
      name: trident
    spec:
      debug: true
      namespace: trident
    
    kubectl create -f deploy/crds/tridentorchestrator_cr.yaml
    
    #Examine the pods in the Trident namespace
    NAME                                READY   STATUS    RESTARTS   AGE
    trident-csi-79df798bdc-m79dc        6/6     Running   0          1m
    trident-csi-xrst8                   2/2     Running   0          1m
    trident-operator-5574dbbc68-nthjv   1/1     Running   0          5m41s
  5. Trident가 의도한 버전으로 업그레이드되었는지 확인합니다.

    kubectl describe torc trident | grep Message -A 3
    
    Message:                Trident installed
    Namespace:              trident
    Status:                 Installed
    Version:                v25.06.0