Skip to content

Commit 027b99a

Browse files
authored
Merge pull request #81821 from gwynnemonahan/OSSM-6958
[DOC] OSSM-6958 Correction in Tempo/OTEL chapter about mTLS
2 parents 945cc8e + db514f6 commit 027b99a

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

modules/ossm-configuring-distr-tracing-tempo.adoc

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ kind: OpenTelemetryCollector
3333
metadata:
3434
name: otel
3535
namespace: bookinfo # <1>
36-
annotations:
37-
sidecar.istio.io/inject: 'true' # <2>
3836
spec:
3937
mode: deployment
4038
config: |
@@ -45,7 +43,7 @@ spec:
4543
endpoint: 0.0.0.0:4317
4644
exporters:
4745
otlp:
48-
endpoint: "tempo-sample-distributor.tracing-system.svc.cluster.local:4317" # <3>
46+
endpoint: "tempo-sample-distributor.tracing-system.svc.cluster.local:4317" # <2>
4947
tls:
5048
insecure: true
5149
service:
@@ -56,12 +54,12 @@ spec:
5654
exporters: [otlp]
5755
----
5856
<1> Include the namespace in the `ServiceMeshMemberRoll` member list.
59-
<2> The sidecar injection annotation is only required when you enable the `spec.security.dataPlane` parameter for mTLS encryption in the `ServiceMeshControlPlane` resource.
60-
<3> In this example, a TempoStack instance is running in the `tracing-system` namespace. You do not have to include the TempoStack namespace, such as`tracing-system`, in the `ServiceMeshMemberRoll` member list.
57+
<2> In this example, a TempoStack instance is running in the `tracing-system` namespace. You do not have to include the TempoStack namespace, such as`tracing-system`, in the `ServiceMeshMemberRoll` member list.
6158
+
6259
[NOTE]
6360
====
64-
You only need to create one instance of the OpenTelemetry Collector in one of the `ServiceMeshMemberRoll` member namespaces.
61+
* Create a single instance of the OpenTelemetry Collector in one of the `ServiceMeshMemberRoll` member namespaces.
62+
* You can add an `otel-collector` as a part of the mesh by adding `sidecar.istio.io/inject: 'true'` to the `OpenTelemetryCollector` resource.
6563
====
6664
6765
. Check the `otel-collector` pod log and verify that the pod is running:
@@ -164,6 +162,28 @@ Kiali 1.73 uses the Jaeger Query API, which causes a longer response time depend
164162

165163
. Verify the `istiod` pod logs and the `otel-collector` pod logs.
166164

165+
[id="configuring-otel-collector-mtls-encrypted-namespace_{context}"]
166+
== Configuring the `OpenTelemetryCollector` in a mTLS encrypted Service Mesh member namespace
167+
168+
All traffic is TLS encrypted when you enable Service Mesh `dataPlane` mTLS encryption.
169+
170+
To enable the mesh to communicate with the `OpenTelemetryCollector` service, disable the TLS `trafficPolicy` by applying a `DestinationRule` for the `OpenTelemetryCollector` service:
171+
172+
.Example `DestinationRule` Tempo CR
173+
[source, yaml]
174+
----
175+
apiVersion: networking.istio.io/v1alpha3
176+
kind: DestinationRule
177+
metadata:
178+
name: otel-disable-tls
179+
spec:
180+
host: "otel-collector.bookinfo.svc.cluster.local"
181+
trafficPolicy:
182+
tls:
183+
mode: DISABLE
184+
----
185+
186+
167187
[id="configuring-distr-tracing-tempo-mtls-encrypted-namespace_{context}"]
168188
== Configuring the {TempoName} in a mTLS encrypted Service Mesh member namespace
169189

0 commit comments

Comments
 (0)