Stalar
Integrations

Kubernetes

Inspect your Kubernetes clusters

Inspect pods, deployments, and events in your Kubernetes clusters.

What Stalar can do

ToolDescription
Get namespacesList cluster namespaces
Get podsList pods and their status
Get pod logsRead container logs
Get deploymentsList deployments and replica status
Get rollout statusCheck deployment rollout progress
Get HPA statusCheck horizontal pod autoscaler status
Get pod eventsView events for a pod
Get servicesList services and endpoints
Get ingressesList ingress rules

Configuration

Required

FieldDescription
apiServerUrlKubernetes API server URL
tokenService account token

Optional

FieldDescription
namespacesList of namespaces to query (empty = all)
skipTlsVerifySkip TLS verification (dev only)
caCertCA 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: true

Example 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?"