앱을 경로에 매핑하면 정상 상태로 실행 중인 인스턴스가 있는 앱인 경우 트래픽이 앱으로 전달됩니다.
여러 앱이 동일한 경로에 매핑되면 트래픽을 대략적으로 균등하게 분배합니다. 들어오는 네트워크 트래픽은 약간 지연을 두고 라우팅 테이블을 업데이트하고 독립적으로 라우팅하는 복수의 게이트웨이에서 처리합니다. 이로 인해 트래픽 라우팅이 표시되지 않을 수 있지만 시간이 지나면 수렴합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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."]]