Deamonset Version:
kubectl get ds instana-agent -n instana-agent -o json | jq .metadata.labels
Prerequisite:
Get a specific agent pod with
kubectl get pod -n instana-agent
Agent Version:
kubectl exec -it instana-agent-9w8l8 -c instana-agent -n instana-agent -- curl localhost:42699
Sensor Versions:
kubectl exec -it instana-agent-9w8l8 -c instana-agent -n instana-agent -- curl localhost:42699/versions
Or just
kubectl exec -it $(kubectl get pod -n instana-agent | awk '{print $1}' | grep -m1 instana-agent) -n instana-agent -c instana-agent -- curl localhost:42699/version
Comments