Skip to content

Commit d522929

Browse files
authored
Merge pull request #38617 from thockin/restore_kubectl_proxy_note_for_manual_endpoints
Restore an important note about API proxy
2 parents 8e51673 + ac6368a commit d522929

File tree

1 file changed

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

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ Accessing a Service without a selector works the same as if it had a selector.
255255
In the [example](#services-without-selectors) for a Service without a selector, traffic is routed to one of the two endpoints defined in
256256
the EndpointSlice manifest: a TCP connection to 10.1.2.3 or 10.4.5.6, on port 9376.
257257

258+
{{< note >}}
259+
The Kubernetes API server does not allow proxying to endpoints that are not mapped to
260+
pods. Actions such as `kubectl proxy <service-name>` where the service has no
261+
selector will fail due to this constraint. This prevents the Kubernetes API server
262+
from being used as a proxy to endpoints the caller may not be authorized to access.
263+
{{< /note >}}
264+
258265
An ExternalName Service is a special case of Service that does not have
259266
selectors and uses DNS names instead. For more information, see the
260267
[ExternalName](#externalname) section later in this document.

0 commit comments

Comments
 (0)