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

自訂Trident營運者部署

貢獻者

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

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

參數 說明 預設

namespace

用於安裝Astra Trident的命名空間

"預設"

debug

啟用Astra Trident的偵錯功能

IPv6

透過IPv6安裝Astra Trident

k8sTimeout

Kubernetes作業逾時

30秒

silenceAutosupport

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

enableNodePrep

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

autosupportImage

遙測的容器影像AutoSupport

「NetApp/Trident自動支援:21.04.0」

autosupportProxy

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

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

uninstall

用來解除安裝Astra Trident的旗標

logFormat

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

"文字"

tridentImage

要安裝的Astra Trident映像

「NetApp/Trident:21.04」

imageRegistry

內部登錄的路徑、格式
<registry FQDN>[:port][/subpath]

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

kubeletDir

主機上的kubelet目錄路徑

"/var/lib/kubelet"

wipeout

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

imagePullSecrets

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

controllerPluginNodeSelector

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

無預設值;選用

controllerPluginTolerations

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

無預設值;選用

nodePluginNodeSelector

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

無預設值;選用

nodePluginTolerations

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

無預設值;選用

重要 spec.namespace 在中指定 TridentOrchestrator 以表示安裝在哪個命名空間Astra Trident。此參數*無法在安裝Astra Trident之後更新*。嘗試這麼做會導致的狀態 TridentOrchestrator 變更為 Failed。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 產生可視需要修改的自訂Y反 洗錢清單。