For the complete documentation index, see llms.txt. This page is also available as Markdown.

Kubernetes (Direct)

Connect Kubernetes (Direct API) to the Pagerly SRE Agent for cluster inspection.

What the Agent Can Do

  • List and inspect pods β€” status, restart counts, OOM kills

  • List deployments, replica sets, and stateful sets

  • Get pod logs and events

  • Check node status and resource usage

  • Inspect services, configmaps, and secrets metadata

Setup Instructions

  1. Get your Kubernetes API server URL (e.g., from kubectl cluster-info)

  2. Create a service account with read permissions:

kubectl create serviceaccount pagerly -n default
  1. Get the service account token:

kubectl create token pagerly -n default
  1. Paste the API server URL and token in the Pagerly dashboard

Required Credentials

Field
Description
Example

Kubernetes API URL

Your K8s API server URL

https://kubernetes.example.com:6443

Service Account Token

Token with read permissions

eyJhbGciOiJSUzI1NiIs...

Prefer the Agent-based approach? If you don't want to expose your K8s API externally, use the Kubernetes (Agent) integration instead β€” it connects outbound from your cluster with no firewall changes needed.

Context Prompt Tips

"Production namespace is prod. Critical deployments: api, worker, web. Use app label for service identification."

Docs

Last updated