Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions modules/otel-troubleshoot-network-policies.adoc
Original file line number Diff line number Diff line change
@@ -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.

2 changes: 2 additions & 0 deletions observability/otel/otel-troubleshooting.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down