Skip to main content
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

安裝並設定Trident Protect

貢獻者 netapp-aruldeepa

如果您的環境符合Trident Protect 的要求,您可以依照下列步驟在叢集上安裝Trident Protect。您可以從NetApp取得Trident Protect,或從您自己的私人註冊表中安裝它。如果您的叢集無法存取互聯網,從私有註冊表安裝會很有幫助。

安裝Trident Protect

從NetApp安裝Trident Protect
步驟
  1. 新增Trident Helm 倉庫:

    helm repo add netapp-trident-protect https://netapp.github.io/trident-protect-helm-chart
  2. 使用 Helm 安裝Trident Protect。代替 `<name-of-cluster>`集群名稱將分配給集群,並用於標識集群的備份和快照:

    helm install trident-protect netapp-trident-protect/trident-protect --set clusterName=<name-of-cluster> --version 100.2506.0 --create-namespace --namespace trident-protect
從私人註冊表安裝Trident Protect

如果您的 Kubernetes 叢集無法存取互聯網,您可以從私人鏡像倉庫安裝Trident Protect。在這些範例中,請將括號中的值替換為您環境中的資訊:

步驟
  1. 將以下鏡像拉取到本地計算機,更新標籤,然後將其推送到您的私有鏡像倉庫:

    netapp/controller:25.06.0
    netapp/restic:25.06.0
    netapp/kopia:25.06.0
    netapp/trident-autosupport:25.06.0
    netapp/exechook:25.06.0
    netapp/resourcebackup:25.06.0
    netapp/resourcerestore:25.06.0
    netapp/resourcedelete:25.06.0
    bitnami/kubectl:1.30.2
    kubebuilder/kube-rbac-proxy:v0.16.0

    例如:

    docker pull netapp/controller:25.06.0
    docker tag netapp/controller:25.06.0 <private-registry-url>/controller:25.06.0
    docker push <private-registry-url>/controller:25.06.0
  2. 建立Trident Protect 系統命名空間:

    kubectl create ns trident-protect
  3. 登入註冊表:

    helm registry login <private-registry-url> -u <account-id> -p <api-token>
  4. 建立用於私有註冊表驗證的拉取金鑰:

    kubectl create secret docker-registry regcred --docker-username=<registry-username> --docker-password=<api-token> -n trident-protect --docker-server=<private-registry-url>
  5. 新增Trident Helm 倉庫:

    helm repo add netapp-trident-protect https://netapp.github.io/trident-protect-helm-chart
  6. 建立一個名為的文件 protectValues.yaml。請確保其中包含以下Trident Protect 設定:

    ---
    image:
      registry: <private-registry-url>
    imagePullSecrets:
      - name: regcred
    controller:
      image:
        registry: <private-registry-url>
    rbacProxy:
      image:
        registry: <private-registry-url>
    crCleanup:
      imagePullSecrets:
        - name: regcred
    webhooksCleanup:
      imagePullSecrets:
        - name: regcred
  7. 使用 Helm 安裝Trident Protect。代替 `<name_of_cluster>`集群名稱將分配給集群,並用於標識集群的備份和快照:

    helm install trident-protect netapp-trident-protect/trident-protect --set clusterName=<name_of_cluster> --version 100.2506.0 --create-namespace --namespace trident-protect -f protectValues.yaml