From 54171c1df445d566e3607eb729da78035384886e Mon Sep 17 00:00:00 2001 From: Eliska Romanova Date: Thu, 25 Sep 2025 14:38:59 +0200 Subject: [PATCH] OBSDOCS-1886: Docs for Network Policies --- .../otel-troubleshoot-network-policies.adoc | 35 +++++++++++++++++++ observability/otel/otel-troubleshooting.adoc | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 modules/otel-troubleshoot-network-policies.adoc diff --git a/modules/otel-troubleshoot-network-policies.adoc b/modules/otel-troubleshoot-network-policies.adoc new file mode 100644 index 000000000000..f349de640e14 --- /dev/null +++ b/modules/otel-troubleshoot-network-policies.adoc @@ -0,0 +1,35 @@ +// Module included in the following assemblies: +// +// * observability/otel/otel-troubleshooting.adoc + +:_mod-docs-content-type: PROCEDURE +[id="troubleshoot-network-policies_{context}"] += Disabling network policies + +The {OTELOperator} creates network policies to control the traffic for the Operator and operands to improve security. +By default, the network policies are enabled and configured to allow traffic to all the required components. No additional configuration is needed. + +If you are experiencing traffic issues for the OpenTelemetry Collector or its Target Allocator component, the problem might be caused by the default network policy configuration. You can disable network policies for the OpenTelemetry Collector to troubleshoot the issue. + +.Prerequisites + +* You have access to the cluster as a cluster administrator with the `cluster-admin` role. + +.Procedure + +* Disable the network policy for the OpenTelemetry Collector by configuring the `OpenTelemetryCollector` custom resource (CR): ++ +[source,yaml] +---- +apiVersion: opentelemetry.io/v1beta1 +kind: OpenTelemetryCollector +metadata: + name: otel + namespace: observability +spec: + networkPolicy: + enabled: false # <1> + # ... +---- +<1> Specify whether to enable network policies by setting `networkPolicy.enabled` to `true` (default) or `false`. Setting it to `false` disables the creation of network policies. + diff --git a/observability/otel/otel-troubleshooting.adoc b/observability/otel/otel-troubleshooting.adoc index f7e2607fac76..fe50d8273ec2 100644 --- a/observability/otel/otel-troubleshooting.adoc +++ b/observability/otel/otel-troubleshooting.adoc @@ -20,6 +20,8 @@ include::modules/otel-troubleshoot-metrics.adoc[leveloffset=+1] include::modules/otel-troubleshoot-debug-exporter-stdout.adoc[leveloffset=+1] +include::modules/otel-troubleshoot-network-policies.adoc[leveloffset=+1] + include::modules/otel-troubleshoot-network-traffic.adoc[leveloffset=+1] [role="_additional-resources"]