tricorder-observability / Starship

Starship: next-generation Observability platform built with eBPF+WASM
GNU Affero General Public License v3.0
163 stars 23 forks source link

Metadata service detect Agent pod terminated #124

Closed nascentcore-eng closed 1 year ago

nascentcore-eng commented 1 year ago

Agent state has a TERMINATED, which can be assigned once API Server's metadata service detected the Agent Pod has been deleted by K8s API Server.

We might need to use downard API to pass the namespace information? But probably not needed, as the pod ID has randomly-generated trailing hash values.

Agent is already sending podID and nodeName to API Server

Agetn's pod id is part of the DeployModuleResp. API Server should already have this information, so can connect with metadata service.

nascentcore-eng commented 1 year ago

https://github.com/tricorder-observability/Starship/commit/9626b25de2eb2056df70918841fa174caea46b53

Done in this commit