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

自訂Trident營運者部署

貢獻者

Trident運算子可讓您使用「TridentOrchestrator」規格中的屬性、自訂Astra Trident的安裝方式。

請參閱下表以取得屬性清單:

參數 說明 預設

命名空間

用於安裝Astra Trident的命名空間

"預設"

「Debug」

啟用Astra Trident的偵錯功能

《IPv6》

透過IPv6安裝Astra Trident

「k8stimeout」

Kubernetes作業逾時

30秒

「ilenceAutoSupport」

請勿AutoSupport 自動將此套裝組合傳送至NetApp

「enableNodePrep」

自動管理工作節點相依性(* BETA *)

「autosupportImage」

遙測的容器影像AutoSupport

「NetApp/Trident自動支援:21.04.0」

「autosupportProxy」

代理伺服器的位址/連接埠、用於傳送AutoSupport 「遙測」功能

"http://proxy.example.com:8888"

解除安裝

用來解除安裝Astra Trident的旗標

記錄格式

要使用的Astra Trident記錄格式[text、json]

"文字"

「TridentImage」

要安裝的Astra Trident映像

「NetApp/Trident:21.04」

「影像登錄」

內部登錄的路徑、格式為「<登錄FQDN >[:port](/子路徑)」

"k8s.gcr.io/sig-storage(k8s 1.17+)或kay.io/k8scsi"

《kubeletDir

主機上的kubelet目錄路徑

"/var/lib/kubelet"

《有線》

要刪除以執行完整移除Astra Trident的資源清單

「imagePullSecrets」

從內部登錄擷取映像的機密

「controllerPluginNodeSelector」

執行Trident控制器csi外掛程式之Pod的其他節點選取器。格式與pod.spec.nodeSelector相同。

無預設值;選用

「控制器插件」

覆寫執行Trident控制器csi外掛程式之Pod的容錯能力。格式與po.spec.TBolerations相同。

無預設值;選用

「nodePluginNodeSelector」

執行Trident Node SCSI外掛程式之Pod的其他節點選取器。格式與pod.spec.nodeSelector相同。

無預設值;選用

「nodePluginBolerations」

覆寫執行Trident Node SCSI外掛程式之Pod的容錯能力。格式與po.spec.TBolerations相同。

無預設值;選用

重要 「pec.namespace`」在「TridentOrchestrator」中指定、以表示要安裝哪個命名空間Astra Trident。此參數*無法在安裝Astra Trident之後更新*。嘗試這樣做會導致「TridentOrchestrator」狀態變更為「失敗」。Astra Trident不打算跨命名空間移轉。
註 自動工作節點準備是*測試版功能*、僅適用於非正式作業環境。
提示 如需格式化Pod參數的詳細資訊、請參閱 "將Pod指派給節點"

您可以在定義「TridentOrchestrator」時、使用上述屬性來自訂安裝。範例如下:

$ cat deploy/crds/tridentorchestrator_cr_imagepullsecrets.yaml
apiVersion: trident.netapp.io/v1
kind: TridentOrchestrator
metadata:
  name: trident
spec:
  debug: true
  namespace: trident
  imagePullSecrets:
  - thisisasecret

以下是另一個範例、說明如何使用節點選取器來部署Trident:

apiVersion: trident.netapp.io/v1
kind: TridentOrchestrator
metadata:
  name: trident
spec:
  debug: true
  namespace: trident
  controllerPluginNodeSelector:
    nodetype: master
  nodePluginNodeSelector:
    storage: netapp

如果您想要自訂超出「TridentOrchestrator」引數範圍的安裝、您應該考慮使用「tridentctl」來產生可視需要修改的自訂Yaml資訊清單。