Skip to content

Commit eba016e

Browse files
committed
command should be port-forward not proxy
Signed-off-by: David Ahmadov <[email protected]>
1 parent dcfbe0d commit eba016e

File tree

1 file changed

+1
-1
lines changed
  • content/en/docs/concepts/services-networking

1 file changed

+1
-1
lines changed

content/en/docs/concepts/services-networking/service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ the EndpointSlice manifest: a TCP connection to 10.1.2.3 or 10.4.5.6, on port 93
289289

290290
{{< note >}}
291291
The Kubernetes API server does not allow proxying to endpoints that are not mapped to
292-
pods. Actions such as `kubectl proxy <service-name>` where the service has no
292+
pods. Actions such as `kubectl port-forward service/<service-name> forwardedPort:servicePort` where the service has no
293293
selector will fail due to this constraint. This prevents the Kubernetes API server
294294
from being used as a proxy to endpoints the caller may not be authorized to access.
295295
{{< /note >}}

0 commit comments

Comments
 (0)