Esta herramienta está destinada a los operadores de Cloud Foundry, para que la usen a fin de proporcionar una imagen de la portabilidad de sus bases a otras plataformas.
Para ello, usa la CLI de cf local a fin de leer información sobre un clúster.
Requisitos
La CLI de cf que estará en tu ruta de acceso
La CLI de cf que se debe autenticar y orientar al clúster para analizar
La CLI de cf a la que se accederá con los permisos de administrador
Lee el informe
El informe no contiene toda la información recuperada de la API, sino que se orienta a datos específicos que se pueden usar para estimar la portabilidad a Kubernetes.
Si bien la herramienta hace todo lo posible para ofuscar o evitar procesar cualquier campo conocido que pueda contener datos sensibles, debes leer el informe antes de enviarlo. Por ejemplo, los URI pueden contener nombres de usuario, contraseñas o claves.
Ejemplos
# 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
Marcas
-h, --help
Ayuda para scan-cf-cluster
Marcas heredadas
Estas marcas se heredan de los comandos superiores.
--as=string
Nombre de usuario que se usará en la operación.
--as-group=strings
Grupo que se usará en la operación. Incluye esta marca varias veces para especificar varios grupos.
--config=string
Ruta de acceso al archivo de configuración de Kf que se usará para las solicitudes de la CLI.
--kubeconfig=string
Ruta de acceso al archivo kubeconfig que se usará para las solicitudes de la CLI.
--log-http
Registra las solicitudes HTTP como error estándar.
--space=string
Espacio para ejecutar el comando. Esto anula el espacio de destino actual.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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."]]