Dieses Tool ist für Cloud Foundry-Operatoren vorgesehen, um ein Bild der Portabilität ihres CF Foundation für andere Plattformen bereitzustellen.
Dazu verwendet es die lokale cf-Befehlszeile, um Informationen zu einer CF-Foundation zu lesen.
Voraussetzungen
Die cf-Befehlszeile, die auf Ihrem Pfad sein soll
Die cf-Befehlszeile, bei der authentifiziert werden soll und die auf die zu scannende CF-Foundation ausgerichtet sein soll
Die cf-Befehlszeile, auf der Sie sich mit Administratorberechtigungen anmelden sollen
Bericht auswerten
Der Bericht enthält nicht alle aus der API abgerufenen Informationen. Er zielt vielmehr auf bestimmte Daten ab, die zur Einschätzung der Portabilität auf Kubernetes verwendet werden können.
Obwohl das Tool versucht, alle bekannten Felder, die möglicherweise vertrauliche Daten enthalten, zu verschleiern oder zu überspringen, empfiehlt es sich, den Bericht vor dem Absenden durchzulesen. URIs können beispielsweise Nutzernamen, Passwörter oder Schlüssel enthalten.
Beispiele
# Validate the CF foundation 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
Flags
-h, --help
Hilfe zu „scan-cf-cluster“
Übernommene Flags
Diese Flags werden von übergeordneten Befehlen übernommen.
--as=string
Nutzername, dessen Identität für den Vorgang übernommen wird.
--as-group=strings
Gruppe, deren Identität für den Vorgang übernommen wird. Verwenden Sie dieses Flag mehrfach, um mehrere Gruppen anzugeben.
--config=string
Pfad zur Kf-Konfigurationsdatei, die für Befehlszeile-Anfragen verwendet werden soll.
--kubeconfig=string
Pfad zur Datei „kubeconfig“ zur Verwendung für CLI-Anfragen.
--log-http
HTTP-Anfragen im Standardfehler loggen.
--space=string
Bereich zum Ausführen des Befehls. Dieses Flag überschreibt den aktuellen Ziel-Space.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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 foundation.\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 CF foundation to other\nplatforms.\n\nIt does this by using the local cf CLI to read information about a CF\nfoundation.\n\n**Requirements**\n\n- The `cf` CLI to be on your path\n- The `cf` CLI to be authenticated to and targeting the CF foundation 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 CF foundation 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."]]