Skip to content

Commit

Permalink
[examples] Update k8s example to not use 0.0.0.0 (#7580)
Browse files Browse the repository at this point in the history
Update k8s example to not use 0.0.0.0 on OTLP receiver endpoint
  • Loading branch information
JaredTan95 authored Apr 29, 2023
1 parent e895d0d commit 2ab671b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/k8s/otel-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ data:
otlp:
protocols:
grpc:
endpoint: ${env:MY_POD_IP}:4317
http:
endpoint: ${env:MY_POD_IP}:4318
exporters:
otlp:
endpoint: "otel-collector.default:4317"
Expand Down Expand Up @@ -79,6 +81,12 @@ spec:
- containerPort: 55679 # ZPages endpoint.
- containerPort: 4317 # Default OpenTelemetry receiver port.
- containerPort: 8888 # Metrics.
env:
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
volumeMounts:
- name: otel-agent-config-vol
mountPath: /conf
Expand All @@ -103,7 +111,9 @@ data:
otlp:
protocols:
grpc:
endpoint: ${env:MY_POD_IP}:4317
http:
endpoint: ${env:MY_POD_IP}:4318
processors:
batch:
memory_limiter:
Expand Down Expand Up @@ -193,6 +203,12 @@ spec:
- containerPort: 14268 # Default endpoint for Jaeger HTTP receiver.
- containerPort: 9411 # Default endpoint for Zipkin receiver.
- containerPort: 8888 # Default endpoint for querying metrics.
env:
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
volumeMounts:
- name: otel-collector-config-vol
mountPath: /conf
Expand Down

0 comments on commit 2ab671b

Please sign in to comment.