Update service-traffic-policy.md (#31408)

* Update service-traffic-policy.md

<h3>What this PR does ?</h3>
Improve documentation.

<h3>Which issue this PR fixes ?</h3>
fixes 31403(Issue).

* Update service-traffic-policy.md

* Update service-traffic-policy.md

* Update service-traffic-policy.md
This commit is contained in:
Md Sahil 2022-02-01 07:07:53 +05:30 committed by GitHub
parent e3ad96a6c4
commit c4dc68c8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ weight: 45
<!-- overview --> <!-- overview -->
{{< feature-state for_k8s_version="v1.21" state="alpha" >}} {{< feature-state for_k8s_version="v1.23" state="beta" >}}
_Service Internal Traffic Policy_ enables internal traffic restrictions to only route _Service Internal Traffic Policy_ enables internal traffic restrictions to only route
internal traffic to endpoints within the node the traffic originated from. The internal traffic to endpoints within the node the traffic originated from. The
@ -20,9 +20,9 @@ cluster. This can help to reduce costs and improve performance.
## Using Service Internal Traffic Policy ## Using Service Internal Traffic Policy
Once you have enabled the `ServiceInternalTrafficPolicy` The `ServiceInternalTrafficPolicy` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/), is a Beta feature and enabled by default.
you can enable an internal-only traffic policy for a When the feature is enabled, you can enable the internal-only traffic policy for a
{{< glossary_tooltip text="Services" term_id="service" >}}, by setting its {{< glossary_tooltip text="Services" term_id="service" >}}, by setting its
`.spec.internalTrafficPolicy` to `Local`. `.spec.internalTrafficPolicy` to `Local`.
This tells kube-proxy to only use node local endpoints for cluster internal traffic. This tells kube-proxy to only use node local endpoints for cluster internal traffic.