Skip to content

Commit 343960a

Browse files
authored
Merge pull request #33197 from Shabirmean/patch-1
doc: add note about endpoint.name==service.name
2 parents 083639a + 9673cd2 commit 343960a

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ where it's running, by adding an Endpoints object manually:
192192
apiVersion: v1
193193
kind: Endpoints
194194
metadata:
195+
# the name here should match the name of the Service
195196
name: my-service
196197
subsets:
197198
- addresses:
@@ -203,6 +204,10 @@ subsets:
203204
The name of the Endpoints object must be a valid
204205
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
205206

207+
When you create an [Endpoints](docs/reference/kubernetes-api/service-resources/endpoints-v1/)
208+
object for a Service, you set the name of the new object to be the same as that
209+
of the Service.
210+
206211
{{< note >}}
207212
The endpoint IPs _must not_ be: loopback (127.0.0.0/8 for IPv4, ::1/128 for IPv6), or
208213
link-local (169.254.0.0/16 and 224.0.0.0/24 for IPv4, fe80::/64 for IPv6).

0 commit comments

Comments
 (0)