Kubernetes
Install the Helm chart, read clusters and pods, remove a cluster or the whole application.
In the console: Console → Observe → Kubernetes
All guides
The Kubernetes agent is a Helm chart. It reports clusters, nodes, workloads, pods, services and CoreDNS, namespaces with cost, storage, events and deployments, and promotes Kubernetes attributes onto spans so a slow trace opens the pod that served it.
Kubernetes and APM are two modules of one application. They are added and removed separately, with the same key, and one cluster can be shared by several applications.
Why use it
- You run workloads on Kubernetes and need nodes, pods, workloads and events in one place.
- You want to jump from a slow trace to the pod and node that served it.
- Several applications share a cluster.
How it works
- 1The k8s-agent Helm chart runs a cluster agent that reads the Kubernetes API (with a read-only ClusterRole).
- 2It pushes inventory, status and events on its poll interval to AppStatus with the cluster key.
- 3Optional eBPF and APM auto-attach add traces from the same cluster; K8s attributes are promoted onto spans.
What you get
- Clusters list with health; per cluster: overview, nodes, pods, workloads, services, namespaces, storage, events, deployments, insights, alerts and settings.
- Optional eBPF tracing per node and APM auto-attach for chosen namespaces.
- Low-data mode and a poll interval for large clusters.
Before you start
- kubectl and Helm 3 with cluster-admin rights.
- Outbound HTTPS from the cluster to agent.appstatus.io.
- On Free, 1 cluster per workspace.
Set it up
Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.
- 1
Start in Get Started
Get Started → Kubernetes (or Kubernetes → Add). Name the cluster, choose Helm (recommended) or plain YAML, and create the key.
- 2
Install with Helm
Get Started fills in the cluster id, key, endpoint and chart version.
terminalhelm repo add appstatus https://agent.appstatus.io/charts && helm repo update kubectl create namespace appstatus --dry-run=client -o yaml | kubectl apply -f - helm upgrade --install appstatus-k8s-agent appstatus/k8s-agent \ --namespace appstatus \ --set-string global.clusterName="prod-eu" \ --set-string global.apiKey="<your-key>" \ --set-string global.clusterId="<shown in Get Started>" \ --set-string global.apiEndpoint="<shown in Get Started>" - 3
Without Helm
Choose “Kubernetes YAML”: the same chart rendered to one manifest you apply with kubectl apply -f.
Check it works
- 1
Check the pods
terminalkubectl get pods -n appstatus helm status appstatus-k8s-agent -n appstatus kubectl logs -n appstatus deploy/appstatus-k8s-agent --tail=20 - 2
In the console
The cluster appears under Kubernetes once the agent reports; the wizard’s probe turns green.
Use it
- 1
Change settings
Edit the values and run the same helm upgrade --install again (helm show values appstatus/k8s-agent lists them all).
- 2
Shared clusters
Several applications can live on one cluster. Each lists the cluster; removing one application keeps the cluster for the others.
Uninstall / remove
- 1
Uninstall the chart
terminalhelm uninstall appstatus-k8s-agent -n appstatus helm uninstall appstatus-apm-ebpf -n appstatus # only if you installed eBPF APM kubectl delete namespace appstatus # only if nothing else runs there - 2
Remove a cluster from AppStatus
Kubernetes → the application → Settings → “Remove this cluster only” (type the cluster name). Its inventory, events and alert rules are deleted.
- 3
Remove the application from Kubernetes
“Remove from Kubernetes” takes the application out of the Kubernetes list with its clusters. APM of the same application keeps running.
Troubleshooting
The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.
Pods are Pending or CrashLoopBackOff
Read the events and the log. Pending usually means resource requests or a node selector; CrashLoop usually means a wrong key or endpoint.
kubectl describe pod -n appstatus -l app.kubernetes.io/instance=appstatus-k8s-agent
kubectl logs -n appstatus deploy/appstatus-k8s-agent --tail=100The cluster never appears
Egress from the cluster to agent.appstatus.io:443 is blocked (NetworkPolicy, egress gateway or proxy), or the key is wrong. Test from a pod:
kubectl run -n appstatus nettest --rm -it --image=curlimages/curl --restart=Never -- \
curl -s https://agent.appstatus.io/healthRBAC “forbidden” errors in the log
The chart creates a ClusterRole and binding. Install with an account that may create them, or ask your platform team to apply the rendered manifest.
“Cluster limit reached”
Free allows 1 cluster. Remove an unused cluster or upgrade; paid plans have no cluster cap.
Workload pods did not get APM
Auto-attach only affects pods started after it was enabled. Restart the workloads in the chosen namespace:
kubectl rollout restart deployment -n <namespace>Plan limits
- Free: 1 cluster. Starter and up: no cluster cap.
Related guides
Applications
APM & tracing
eBPF (no code), OpenTelemetry Collector, SDK or Kubernetes: traces, services and endpoints.
Infrastructure
Host agent
Install, check, update and remove the agent on Linux, macOS, Windows and Docker.
Delivery
Deployments & pipelines
Connect GitHub, GitLab or Bitbucket, or report from any CI. Releases, canaries and rollbacks.
Start here
Uninstall & remove data
Remove every agent, collector and snippet, then delete the data or the whole account.
Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.