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

產生 Trident Protect 支援服務組合

貢獻者 netapp-mwallis netapp-shwetav

Trident Protect 使管理員能夠產生包含對NetApp支援有用的信息的捆綁包,包括有關所管理的叢集和應用程式的日誌、指標和拓撲資訊。如果您已連接到互聯網,則可以使用自訂資源 (CR) 檔案將支援包上傳至NetApp支援網站 (NSS)。

使用 CR 建立支援服務組合
步驟
  1. 建立自訂資源( CR )檔案並命名(例如 trident-protect-support-bundle.yaml)。

  2. 設定下列屬性:

    • * metadata.name*: ( _required )此自訂資源的名稱;為您的環境選擇唯一且合理的名稱。

    • spec.triggerType :( _required _ )決定是立即產生支援套件,還是排程產生。排定的套件產生時間為上午 12 點, UTC 。可能值:

      • 已排程

      • 手冊

    • SPEC.uploadEnabled :( Optional )控制是否應在支援服務組合產生後,將其上傳至 NetApp 支援網站。如果未指定,則默認爲 false。可能值:

      • 是的

      • 否(預設)

    • spec.daWindowStart :( Optional ) RFC 3339 格式的日期字串,指定支援套件中所包含資料的視窗應開始的日期與時間。如果未指定,則預設為 24 小時前。您可以指定的最早時間是 7 天前。

      YAML 範例:

    ---
    apiVersion: protect.trident.netapp.io/v1
    kind: AutoSupportBundle
    metadata:
      name: trident-protect-support-bundle
    spec:
      triggerType: Manual
      uploadEnabled: true
      dataWindowStart: 2024-05-05T12:30:00Z
  3. 填充後 `trident-protect-support-bundle.yaml`具有正確值的文件,應用 CR:

    kubectl apply -f trident-protect-support-bundle.yaml -n trident-protect
使用 CLI 建立支援服務包
步驟
  1. 建立支援服務組合,以環境資訊取代括號中的值。 trigger-type`決定套件是立即建立,還是建立時間取決於排程,可以是 `Manual`或 `Scheduled。預設設定為 Manual

    例如:

    tridentctl-protect create autosupportbundle <my-bundle-name> --trigger-type <trigger-type> -n trident-protect

監視和檢索支援包

使用任一方法建立支援包後,您可以監視其產生進度並將其檢索到本機系統。

步驟
  1. 等待 `status.generationState`到達 `Completed`狀態。您可以使用以下命令監控產生進度:

    kubectl get autosupportbundle trident-protect-support-bundle -n trident-protect
  2. 將支援包檢索到您的本機系統。從已完成的AutoSupport套件中取得複製指令:

    kubectl describe autosupportbundle trident-protect-support-bundle -n trident-protect

    找到 `kubectl cp`從輸出執行命令並運行它,用您喜歡的本機目錄取代目標參數。