Merge pull request #33197 from Shabirmean/patch-1
doc: add note about endpoint.name==service.name
This commit is contained in:
commit
343960a1f7
|
|
@ -192,6 +192,7 @@ where it's running, by adding an Endpoints object manually:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Endpoints
|
kind: Endpoints
|
||||||
metadata:
|
metadata:
|
||||||
|
# the name here should match the name of the Service
|
||||||
name: my-service
|
name: my-service
|
||||||
subsets:
|
subsets:
|
||||||
- addresses:
|
- addresses:
|
||||||
|
|
@ -203,6 +204,10 @@ subsets:
|
||||||
The name of the Endpoints object must be a valid
|
The name of the Endpoints object must be a valid
|
||||||
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
|
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
|
||||||
|
|
||||||
|
When you create an [Endpoints](docs/reference/kubernetes-api/service-resources/endpoints-v1/)
|
||||||
|
object for a Service, you set the name of the new object to be the same as that
|
||||||
|
of the Service.
|
||||||
|
|
||||||
{{< note >}}
|
{{< note >}}
|
||||||
The endpoint IPs _must not_ be: loopback (127.0.0.0/8 for IPv4, ::1/128 for IPv6), or
|
The endpoint IPs _must not_ be: loopback (127.0.0.0/8 for IPv4, ::1/128 for IPv6), or
|
||||||
link-local (169.254.0.0/16 and 224.0.0.0/24 for IPv4, fe80::/64 for IPv6).
|
link-local (169.254.0.0/16 and 224.0.0.0/24 for IPv4, fe80::/64 for IPv6).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue