- 在 Jaeger 部署配置中添加环境变量 COLLECTOR_OTLP_ENABLED 并设置为 true - 此修改增加了对 OpenTelemetry Protocol (OTLP) 的支持,提高了监控和追踪能力
31 lines
654 B
YAML
31 lines
654 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: jaeger
|
|
name: jaeger
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: jaeger
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jaeger
|
|
spec:
|
|
containers:
|
|
- image: docker.m.daocloud.io/jaegertracing/all-in-one:latest
|
|
name: jaeger
|
|
ports:
|
|
- containerPort: 16686
|
|
protocol: TCP
|
|
- containerPort: 4317
|
|
protocol: TCP
|
|
- containerPort: 4318
|
|
protocol: TCP
|
|
env:
|
|
- name: COLLECTOR_OTLP_ENABLED
|
|
value: "true"
|
|
restartPolicy: Always
|