简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
安装和配置Trident Protect
如果您的环境满足Trident Protect 的要求,您可以按照以下步骤在集群上安装Trident Protect。您可以从NetApp获取Trident Protect,或者从您自己的私有注册表中安装它。如果您的集群无法访问互联网,从私有注册表安装会很有帮助。
安装Trident Protect
从NetApp安装Trident Protect
步骤
-
添加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.2506.0 --create-namespace --namespace trident-protect
从私有注册表安装Trident Protect
如果您的 Kubernetes 集群无法访问互联网,您可以从私有镜像仓库安装Trident Protect。在这些示例中,请将括号中的值替换为您环境中的信息:
步骤
-
将以下镜像拉取到本地计算机,更新标签,然后将其推送到您的私有镜像仓库:
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.0docker tag netapp/controller:25.06.0 <private-registry-url>/controller:25.06.0docker push <private-registry-url>/controller:25.06.0 -
创建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 设置:--- 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 -
使用 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