Wenn Sie eine Anwendung einer Route zuordnen, wird der Traffic an die Anwendung weitergeleitet, wenn die Anwendung Instanzen enthält, die ausgeführt werden und fehlerfrei sind.
Wenn mehrere Anwendungen derselben Route zugeordnet sind, wird der Traffic ungefähr gleichmäßig zwischen ihnen aufgeteilt. Eingehender Traffic wird über mehrere Gateways abgewickelt, die ihre Routing-Tabellen mit leichten Verzögerungen aktualisieren und unabhängig voneinander routen. Aus diesem Grund wird das Routing von Traffic möglicherweise nicht immer angezeigt, sondern konvergiert im Laufe der Zeit.
[[["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 map-route\n\n### Name\n\n`kf map-route` - Grant an App access to receive traffic from the Route.\n\n### Synopsis\n\n```\nkf map-route APP_NAME DOMAIN [--hostname HOSTNAME] [--path PATH] [--weight WEIGHT] [flags]\n```\n\n### Description\n\nMapping an App to a Route will cause traffic to be forwarded to the App if\nthe App has instances that are running and healthy.\n\nIf multiple Apps are mapped to the same Route they will split traffic\nbetween them roughly evenly. Incoming network traffic is handled by multiple\ngateways which update their routing tables with slight delays and route\nindependently. Because of this, traffic routing may not appear even but it\nwill converge over time.\n\n### Examples\n\n```\nkf map-route myapp example.com --hostname myapp # myapp.example.com\nkf map-route myapp myapp.example.com # myapp.example.com\nkf map-route myapp example.com --hostname myapp --weight 2 # myapp.example.com, myapp receives 2x traffic\nkf map-route --space myspace myapp example.com --hostname myapp # myapp.example.com\nkf map-route myapp example.com --hostname myapp --path /mypath # myapp.example.com/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 map-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`--weight=`\u003cvar translate=\"no\"\u003eint32\u003c/var\u003e\n\n: Weight for the Route. (default 1)\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."]]