79458919

Date: 2025-02-22 01:08:36
Score: 0.5
Natty:
Report link

I just had to solve a similar problem, the solutions above do the job, however I needed to be able to identify the pod. I'm sharing the command used here:

kubectl get po -o json -A | jq -r '.items[] | {name: .metadata.name, mac: (.metadata.annotations["k8s.v1.cni.cncf.io/network-status"] // "[]" | fromjson | .[0].mac)}'

(note the output includes the pod's name)

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RobMac