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

安裝及設定 Trident Protect

貢獻者 netapp-mwallis netapp-shwetav

如果您的環境符合 Trident Protect 的要求,您可以依照下列步驟在叢集上安裝 Trident Protect 。您可以從 NetApp 取得 Trident Protect ,或從您自己的私有登錄安裝。如果您的叢集無法存取網際網路,從私有登錄安裝會很有幫助。

安裝 Trident Protect

安裝 Trident Protect from NetApp
步驟
  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