Skip to content

Commit f16c446

Browse files
Explain Service without selector is for non-Pod backends (#32602)
* Minor edit for clarity The previous phrasing didn't emphasize the point that the reason you define a Service with no selectors is to point to a backend that's not a Pod, and the emphasis on the external nature of the backend * Add note that Services w/o selectors, but +Endpoints is the technique to use for abstracting external backends Co-authored-by: Rey Lejano <[email protected]> Co-authored-by: Rey Lejano <[email protected]>
1 parent 74c12d3 commit f16c446

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ Each port definition can have the same `protocol`, or a different one.
158158

159159
### Services without selectors
160160

161-
Services most commonly abstract access to Kubernetes Pods, but they can also
162-
abstract other kinds of backends.
163-
For example:
161+
Services most commonly abstract access to Kubernetes Pods thanks to the selector,
162+
but when used with a corresponding Endpoints object and without a selector, the Service can abstract other kinds of backends,
163+
including ones that run outside the cluster. For example:
164164

165165
* You want to have an external database cluster in production, but in your
166166
test environment you use your own databases.

0 commit comments

Comments
 (0)