Skip to content

Commit 5ec536b

Browse files
committed
Add pod ip to via downward API to Trace Attributes
Provide additional attributes for tracing associations Modified the helm templates to add the pod IP, and the jaeger injector to add it to the standard attributes Deploying should show the ip as a trace attribute Fixes #13980 Signed-off-by: Justin <[email protected]>
1 parent 9bc7564 commit 5ec536b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

charts/partials/templates/_proxy.tpl

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ env:
1919
valueFrom:
2020
fieldRef:
2121
fieldPath: metadata.uid
22+
- name: _pod_ip
23+
valueFrom:
24+
fieldRef:
25+
fieldPath: status.podIP
2226
- name: _pod_nodeName
2327
valueFrom:
2428
fieldRef:

jaeger/injector/mutator/patch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const tpl = `[
5151
"path": "/spec/{{.ProxyPath}}/env/-",
5252
"value": {
5353
"name": "LINKERD2_PROXY_TRACE_EXTRA_ATTRIBUTES",
54-
"value": "k8s.pod.uid=$(_pod_uid)\nk8s.container.name=$(_pod_containerName)"
54+
"value": "k8s.pod.ip=${_pod_ip}\nk8s.pod.uid=$(_pod_uid)\nk8s.container.name=$(_pod_containerName)"
5555
}
5656
},
5757
{

0 commit comments

Comments
 (0)