Skip to content

Commit 2cf2b19

Browse files
committed
add a note re selectorless services and proxy
1 parent 30c47c9 commit 2cf2b19

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
@@ -183,6 +183,13 @@ Accessing a Service without a selector works the same as if it had a selector.
183183
In the example above, traffic is routed to the single endpoint defined in
184184
the YAML: `192.0.2.42:9376` (TCP).
185185

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

0 commit comments

Comments
 (0)