1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00

fix container port mismatch issue (#1895)

Signed-off-by: haoqing0110 <qhao@redhat.com>
This commit is contained in:
Qing Hao 2021-05-10 23:22:40 +08:00 committed by GitHub
parent d20e722830
commit 79d9852e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ spec:
NodePort
```
This service will bind the `55680` port used to access the otlp receiver to port `30080` on your cluster's node. By doing so, it makes it possible for us to access the Collector by using the static address `<node-ip>:30080`. In case you are running a local cluster, this will be `localhost:30080`. Note that you can also change this to a LoadBalancer or have an ingress extension for accessing the service.
This service will bind the `4317` port used to access the otlp receiver to port `30080` on your cluster's node. By doing so, it makes it possible for us to access the Collector by using the static address `<node-ip>:30080`. In case you are running a local cluster, this will be `localhost:30080`. Note that you can also change this to a LoadBalancer or have an ingress extension for accessing the service.
# Running the code

View File

@ -65,9 +65,9 @@ metadata:
spec:
ports:
- name: otlp # Default endpoint for otlp receiver.
port: 55680
port: 4317
protocol: TCP
targetPort: 55680
targetPort: 4317
nodePort: 30080
- name: metrics # Default endpoint for metrics.
port: 8889