Skip to content

Commit cb77066

Browse files
authored
Merge pull request #44099 from ahmedavid/correction_port-forward
Service without selectors, command correction issue
2 parents c05e239 + eba016e commit cb77066

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
@@ -292,7 +292,7 @@ the EndpointSlice manifest: a TCP connection to 10.1.2.3 or 10.4.5.6, on port 93
292292

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

0 commit comments

Comments
 (0)