Se una route viene rimappata da un'app, il traffico corrispondente alla route non verrà più inoltrato all'app.
L'app potrebbe comunque ricevere traffico da un percorso non mappato per un breve periodo di tempo mentre le regole di traffico sui gateway vengono propagate.
Il percorso riequilibrerà i relativi pesi di routing in modo che le altre app mappate al percorso ricevano il traffico. Se non sono associate altre app, il percorso restituirà un codice di stato HTTP 404.
Esempi
# Unmap myapp.example.com from myapp in the targeted Space
kf unmap-route myapp example.com --hostname myapp
# Unmap the Route in a specific Space
kf unmap-route --space myspace myapp example.com --hostname myapp
# Unmap a Route with a path
kf unmap-route myapp example.com --hostname myapp --path /mypath
Flag
--async
Non attendere il completamento dell'azione sul server prima di tornare.
--destination-port=int32
Porta dell'app a cui si connetterà il percorso.
-h, --help
Guida per unmap-route
--hostname=string
Nome host per il percorso.
--path=string
Percorso dell'URL per il percorso.
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 unmap-route\n\n### Name\n\n`kf unmap-route` - Revoke an App's access to receive traffic from the Route.\n\n### Synopsis\n\n```\nkf unmap-route APP_NAME DOMAIN [--hostname HOSTNAME] [--path PATH] [flags]\n```\n\n### Description\n\nUnmapping an App from a Route will cause traffic matching the Route to no\nlonger be forwarded to the App.\n\nThe App may still receive traffic from an unmapped Route for a small period\nof time while the traffic rules on the gateways are propagated.\n\nThe Route will re-balance its routing weights so other Apps mapped to it\nwill receive the traffic. If no other Apps are bound the Route will return\na 404 HTTP status code.\n\n### Examples\n\n```\n# Unmap myapp.example.com from myapp in the targeted Space\nkf unmap-route myapp example.com --hostname myapp\n\n# Unmap the Route in a specific Space\nkf unmap-route --space myspace myapp example.com --hostname myapp\n\n# Unmap a Route with a path\nkf unmap-route myapp example.com --hostname myapp --path /mypath\n```\n\n### Flags\n\n`--async`\n\n: Do not wait for the action to complete on the server before returning.\n\n`--destination-port=`\u003cvar translate=\"no\"\u003eint32\u003c/var\u003e\n\n: Port on the App the Route will connect to.\n\n`-h, --help`\n\n: help for unmap-route\n\n`--hostname=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: Hostname for the Route.\n\n`--path=`\u003cvar translate=\"no\"\u003estring\u003c/var\u003e\n\n: URL path for the Route.\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."]]