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:
parent
d20e722830
commit
79d9852e96
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user