opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

When deploying in K8s, release the connection limit

Open chenzhiguo opened this issue 1 year ago • 0 comments

Describe the bug I tried to deploy the relevant components of otel in my k8s cluster using examples/k8s/otel-config.yaml, but I realized that the default IP for service startup is bound to its own POD. I think the configurations in these two ConfigMaps: otel-collector-conf and otel-agent-conf are as follows:

data:
  otel-agent-config: |
    receivers:
      otlp:
        protocols:
          grpc:
            endpoint: ${env:MY_POD_IP}:4317
          http:
            endpoint: ${env:MY_POD_IP}:4318

Is it more appropriate to change it to 0.0.0.0?

data:
  otel-agent-config: |
    receivers:
      otlp:
        protocols:
          grpc:
            endpoint: 0.0.0.0:4317
          http:
            endpoint: 0.0.0.0:4318

Steps to reproduce Up

What version did you use? v0.100.0

What config did you use? examples/k8s/otel-config.yaml

Environment K8s v1.19.9

Additional context None

chenzhiguo avatar May 16 '24 08:05 chenzhiguo