Questo strumento è destinato a essere utilizzato dagli operatori di Cloud Foundry per fornire un quadro della portabilità della loro base ad altre piattaforme.
A tale scopo, utilizza l'interfaccia a riga di comando cf locale per leggere le informazioni su un cluster.
Requisiti
L'interfaccia a riga di comando cf deve essere nel percorso
L'interfaccia a riga di comando cf a cui eseguire l'autenticazione e il cluster di destinazione da eseguire la scansione
L'interfaccia a riga di comando cf deve essere connessa con autorizzazioni di amministratore
Leggere il report
Il report non contiene tutte le informazioni recuperate dall'API, ma ha come target dati specifici che possono essere utilizzati per stimare la portabilità su Kubernetes.
Sebbene lo strumento faccia del suo meglio per offuscare o saltare l'elaborazione di eventuali campi noti
che potrebbero contenere dati sensibili, ti consigliamo di leggere il report prima di
inviarlo. Ad esempio, gli URI potrebbero contenere nomi utente, password o chiavi.
Esempi
# 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
Flag
-h, --help
help for scan-cf-cluster
Flag ereditati
Questi flag vengono ereditati dai comandi principali.
--as=string
Nome utente da rubare per l'operazione.
--as-group=strings
Gruppo da simulare per l'operazione. Includi questo flag più volte per specificare più gruppi.
--config=string
Percorso del file di configurazione Kf da utilizzare per le richieste dell'interfaccia a riga di comando.
--kubeconfig=string
Percorso del file kubeconfig da utilizzare per le richieste della CLI.
--log-http
Registra le richieste HTTP nell'errore standard.
--space=string
Spazio in cui eseguire il comando. Questo flag sostituisce lo spazio attualmente scelto come target.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# kf migrate scan-cf-cluster\n\n### Name\n\n`kf migrate scan-cf-cluster` - Reports migration readiness of a CF cluster.\n\n### Synopsis\n\n```\nkf migrate scan-cf-cluster REPORT_NAME.(xlsx|txt) [flags]\n```\n\n### Description\n\nThis tool is intended to be used by Cloud Foundry operators to\nprovide a picture about the portability of their foundation to other\nplatforms.\n\nIt does this by using the local cf CLI to read information about a cluster.\n\n**Requirements**\n\n- The `cf` CLI to be on your path\n- The `cf` CLI to be authenticated to and targeting the cluster to scan\n- The `cf` CLI to be logged in with administrator permissions\n\n**Reading the report**\n\nThe report does not contain all the information retrieved from the API, instead\nit targets specific pieces of data that can be used to estimate portability to\nKubernetes.\n\nWhile the tool does its best to obfuscate or skip processing any known fields\nthat might contain sensitive data, you should read through the report before\nsending it off. For example, URIs might contain usernames, passwords, or keys.\n\n### Examples\n\n```\n# Validate the cluster to be targeted\ncf curl /v2/info\n\n# Run the command and get XLSX results (recommended)\nkf migrate scan-cf-cluster report.xlsx\n\n# Run the command and get text results\nkf migrate scan-cf-cluster report.txt\n```\n\n### Flags\n\n`-h, --help`\n\n: help for scan-cf-cluster\n\n### Inherited flags\n\nThese flags are inherited from parent commands.\n\n`--as=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Username to impersonate for the operation.\n\n`--as-group=`\u003cvar translate=\"no\"\u003estrings\u003c/var\u003e\n\n: Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.\n\n`--config=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the Kf config file to use for CLI requests.\n\n`--kubeconfig=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Path to the kubeconfig file to use for CLI requests.\n\n`--log-http`\n\n: Log HTTP requests to standard error.\n\n`--space=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Space to run the command against. This flag overrides the currently targeted Space."]]