名稱
kf migrate scan-cf-cluster
- 回報 CF 叢集的遷移就緒狀態。
概要
kf migrate scan-cf-cluster REPORT_NAME.(xlsx|txt) [flags]
說明
這項工具適用於 Cloud Foundry 作業人員,可讓他們瞭解基礎架構在其他平台上的可攜性。
這項功能會使用本機 cf CLI 讀取叢集相關資訊。
需求條件
cf
CLI 路徑- 要驗證的
cf
CLI,以及要掃描的叢集 cf
CLI,須以管理員權限登入
閱讀報告
這份報表不包含從 API 擷取的所有資訊,而是鎖定可用於估算移植至 Kubernetes 的可攜性相關的特定資料。
雖然這項工具會盡力將任何可能包含機密資料的已知欄位模糊處理或略過處理,但您仍應先詳閱報表,再將其傳送出去。舉例來說,URI 可能包含使用者名稱、密碼或金鑰。
範例
# Validate the cluster to be targeted cf curl /v2/info # Run the command and get XLSX results (recommended) kf migrate scan-cf-cluster report.xlsx # Run the command and get text results kf migrate scan-cf-cluster report.txt
旗標
-h, --help
掃描叢集 (scan-cf-cluster) 的說明
繼承的標記
這些標記會繼承自父項指令。
--as=string
要冒用來執行作業的使用者名稱。
--as-group=strings
要冒用身分的群組。如要指定多個群組,請多次加入這個標記。
--config=string
用於 CLI 要求的 Kf 設定檔路徑。
--kubeconfig=string
用於 CLI 要求的 kubeconfig 檔案路徑。
--log-http
將 HTTP 要求記錄到標準錯誤。
--space=string
要執行指令的空間。這個標記會覆寫目前指定的空間。