generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 27
docs: add documentation for node local traffic #1947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rakesh-garimella
merged 16 commits into
kyma-project:main
from
rakesh-garimella:poc_local_traffic_only
Mar 31, 2025
Merged
Changes from 3 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f3b6666
add documentation for node local traffic
rakesh-garimella 51d4943
fix
rakesh-garimella 9f10d61
Merge branch 'main' into poc_local_traffic_only
rakesh-garimella bcc6f9f
Apply suggestions from code review
rakesh-garimella caaf0b7
Apply suggestions from code review
rakesh-garimella 0088173
fix
rakesh-garimella ae0ef73
fix
rakesh-garimella e531d98
fix
rakesh-garimella bbeb231
fix
rakesh-garimella eb0e921
Merge branch 'main' into poc_local_traffic_only
rakesh-garimella 9a5009e
add pocs to ADR
rakesh-garimella de5f164
Apply suggestions from code review
rakesh-garimella bd23c22
Apply suggestions from code review
rakesh-garimella 4561be9
Apply suggestions from code review
rakesh-garimella 8aa733a
fix
rakesh-garimella 920344c
Merge branch 'main' into poc_local_traffic_only
rakesh-garimella File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
docs/contributor/pocs/node-local-traffic/node-local-traffic.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Service with local traffic policy | ||
|
||
The PoC tries to understand the behavior of the OTLP push service with [service internal traffic policy](https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/#using-service-internal-traffic-policy). The gateways | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
in Kyma Telemetry are exposed via OTLP service eg: `telemetry-otlp-traces`. the | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
applications running in the cluster will push the telemetry data to this service. This PoC tests the behaviour when this OTLP | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
push service is configured with `internalTrafficPolicy: Local`. Following criteria were tested: | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- If the data is only sent to the daemonSet running on the same node | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- If the daemonSet for some reason is not running then is the data sent to a daemonSet running on a different node | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Setup | ||
|
||
For the setup we deployed following: | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- A [trace generator and sink](./trace-gen.yaml) | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Trace Agent [Setup](./trace-agent.yaml) | ||
|
||
|
||
## Tests | ||
Tests were performed in following way: | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
### Pre-requisites | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Deployed the trace agent with service `internalTrafficPolicy: Local` | ||
- Deployed the trace generator and sink. Where trace generator would push traces to `telemetry-otlp-traces-local.kyma-system:4317` | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Verifications | ||
- The traces are only pushed to the daemonSet running on the same node as the trace generator | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- When the daemonSet is in CrashloopBackoff or in Error state, the traces should not be pushed to the backend. | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- To simulate failure the configmap was introduced with broken config and the daemonSet was restarted. | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
### Results | ||
|
||
| | Trace Generator | Trace Sink | Comments | | ||
|-------|-----------------|------------|---------------------------------------------------------------------------------------------------------------------------------| | ||
| Istio | disabled | enabled | - Peer authentication is required <br> - Data is sent pod on same node <br> - When pod is not running then data is not received | | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Istio | enabled | enabled | - Data is sent pod on same node <br> - When pod is not running then data is not received | | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Istio | disabled | disabled | - Data is sent pod on same node <br> - When pod is not running then data is not received | | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Istio | enabled | disabled | - Data is sent pod on same node <br> - When pod is not running then data is not received | | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
### Summary | ||
|
||
When Service is configured with `internalTrafficPolicy: Local` then the data is only sent to the daemonSet running on the same node. If the daemonSet is not running then the data is not sent to the daemonSet running on a different node. If the | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
daemonSet is in CrashloopBackoff or in Error state then the data is not sent to a different daemonSet running on the different node. | ||
rakesh-garimella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.