本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。
安裝及設定 Trident Protect
如果您的環境符合 Trident Protect 的要求,您可以依照下列步驟在叢集上安裝 Trident Protect 。您可以從 NetApp 取得 Trident Protect ,或從您自己的私有登錄安裝。如果您的叢集無法存取網際網路,從私有登錄安裝會很有幫助。
安裝 Trident Protect
安裝 Trident Protect from NetApp
步驟
-
新增Trident Helm儲存庫:
helm repo add netapp-trident-protect https://netapp.github.io/trident-protect-helm-chart -
使用 Helm 安裝 Trident Protect 。以叢集名稱取代
<name-of-cluster>,該名稱將指派給叢集,用於識別叢集的備份和快照:helm install trident-protect netapp-trident-protect/trident-protect --set clusterName=<name-of-cluster> --version 100.2510.0 --create-namespace --namespace trident-protect -
(選用)若要啟用偵錯日誌記錄(建議用於故障排除),請使用:
helm install trident-protect netapp-trident-protect/trident-protect --set clusterName=<name-of-cluster> --set logLevel=debug --version 100.2510.0 --create-namespace --namespace trident-protect偵錯日誌記錄有助於NetApp支援人員排除故障,而無需變更日誌等級或重現問題。
從私有登錄安裝 Trident Protect
如果 Kubernetes 叢集無法存取網際網路,您可以從私有映像登錄安裝 Trident Protect 。在這些範例中,請將方括號中的值取代為環境中的資訊:
步驟
-
將下列影像拉到您的本機電腦,更新標記,然後將它們推送到您的私人登錄:
docker.io/netapp/controller:25.10.0 docker.io/netapp/restic:25.10.0 docker.io/netapp/kopia:25.10.0 docker.io/netapp/kopiablockrestore:25.10.0 docker.io/netapp/trident-autosupport:25.10.0 docker.io/netapp/exechook:25.10.0 docker.io/netapp/resourcebackup:25.10.0 docker.io/netapp/resourcerestore:25.10.0 docker.io/netapp/resourcedelete:25.10.0 docker.io/netapp/trident-protect-utils:v1.0.0例如:
docker pull docker.io/netapp/controller:25.10.0docker tag docker.io/netapp/controller:25.10.0 <private-registry-url>/controller:25.10.0docker push <private-registry-url>/controller:25.10.0要取得 Helm Chart,首先需要在可以存取網路的電腦上下載 Helm Chart。 helm pull trident-protect --version 100.2510.0 --repo https://netapp.github.io/trident-protect-helm-chart`然後複製結果 `trident-protect-100.2510.0.tgz將檔案複製到您的離線環境並進行安裝helm install trident-protect ./trident-protect-100.2510.0.tgz而不是在最後一步使用存儲庫引用。 -
建立 Trident Protect 系統命名空間:
kubectl create ns trident-protect -
登入登錄:
helm registry login <private-registry-url> -u <account-id> -p <api-token> -
建立用於私人登錄驗證的拉出密碼:
kubectl create secret docker-registry regcred --docker-username=<registry-username> --docker-password=<api-token> -n trident-protect --docker-server=<private-registry-url> -
新增Trident Helm儲存庫:
helm repo add netapp-trident-protect https://netapp.github.io/trident-protect-helm-chart -
建立名為的檔案
protectValues.yaml。請確定其中包含下列 Trident Protect 設定:--- imageRegistry: <private-registry-url> imagePullSecrets: - name: regcred這 imageRegistry`和 `imagePullSecrets`這些值適用於所有組件影像,包括 `resourcebackup`和 `resourcerestore。如果您將鏡像推送到註冊表中的特定儲存庫路徑(例如,example.com:443/my-repo),請在登錄欄位中包含完整路徑。這將確保所有圖像都從此處提取。<private-registry-url>/<image-name>:<tag>。 -
使用 Helm 安裝 Trident Protect 。以叢集名稱取代
<name_of_cluster>,該名稱將指派給叢集,用於識別叢集的備份和快照:helm install trident-protect netapp-trident-protect/trident-protect --set clusterName=<name_of_cluster> --version 100.2510.0 --create-namespace --namespace trident-protect -f protectValues.yaml -
(選用)若要啟用偵錯日誌記錄(建議用於故障排除),請使用:
helm install trident-protect netapp-trident-protect/trident-protect --set clusterName=<name-of-cluster> --set logLevel=debug --version 100.2510.0 --create-namespace --namespace trident-protect -f protectValues.yaml偵錯日誌記錄有助於NetApp支援人員排除故障,而無需變更日誌等級或重現問題。
|
|
有關其他 Helm Chart 設定選項,包括AutoSupport設定和命名空間過濾,請參閱 "自訂 Trident Protect 安裝"。 |