Integrations
Kubernetes
Inspect your Kubernetes clusters
Inspect pods, deployments, and events in your Kubernetes clusters.
What Stalar can do
| Tool | Description |
|---|---|
| Get namespaces | List cluster namespaces |
| Get pods | List pods and their status |
| Get pod logs | Read container logs |
| Get deployments | List deployments and replica status |
| Get rollout status | Check deployment rollout progress |
| Get HPA status | Check horizontal pod autoscaler status |
| Get pod events | View events for a pod |
| Get services | List services and endpoints |
| Get ingresses | List ingress rules |
Configuration
Required
| Field | Description |
|---|---|
apiServerUrl | Kubernetes API server URL |
token | Service account token |
Optional
| Field | Description |
|---|---|
namespaces | List of namespaces to query (empty = all) |
skipTlsVerify | Skip TLS verification (dev only) |
caCert | CA certificate for TLS |
Config file example
integrations:
- name: "k8s-prod"
type: "kubernetes"
environment: "production"
config:
apiServerUrl: "https://kubernetes.default.svc"
token: "${K8S_TOKEN}"
namespaces:
- "default"
- "production"
# With CA certificate
- name: "k8s-external"
type: "kubernetes"
environment: "production"
config:
apiServerUrl: "https://k8s.example.com:6443"
token: "${K8S_TOKEN}"
caCert: "$file:/etc/stalar/k8s-ca.crt"
# Development with TLS skip
- name: "k8s-dev"
type: "kubernetes"
environment: "development"
config:
apiServerUrl: "https://localhost:6443"
token: "${K8S_DEV_TOKEN}"
skipTlsVerify: trueExample queries
- "What pods are crashing in production?"
- "Show me the status of the API deployment"
- "Are there any pending pods?"
- "What events happened in the last hour?"