OverviewArchitectureRecipeSourceProcessorSinkContext Graph for AI
OverviewArchitectureRecipeSourceProcessorSinkContext Graph for AI

Kubernetes

Extracts namespaces, deployments, services, pods, and jobs from a Kubernetes cluster. Emits namespace, deployment, service, pod, and job entities, with belongs_to edges linking workloads to their namespace.

Usage

source:
  name: kubernetes
  scope: my-cluster
  config:
    kubeconfig: ~/.kube/config
    namespaces:
      - default
      - production
    exclude:
      - kube-system
      - kube-public

Configuration

KeyTypeDescriptionRequired
kubeconfigstringPath to a kubeconfig file. If omitted, auth is auto-detected (see Notes).No
namespaces[]stringNamespaces to extract from. Default: all namespaces.No
extract[]stringResource types to extract. Allowed values: namespaces, deployments, services, pods, jobs. Default: ["namespaces", "deployments", "services", "jobs"] (pods are off by default).No
exclude[]stringNamespaces to skip.No

Output

URN patterns:

urn:kubernetes:{scope}:namespace:{name}
urn:kubernetes:{scope}:deployment:{namespace}/{name}
urn:kubernetes:{scope}:service:{namespace}/{name}
urn:kubernetes:{scope}:pod:{namespace}/{name}
urn:kubernetes:{scope}:job:{namespace}/{name}

All entities carry labels and created_at. Other notable properties:

  • namespace - status (phase, e.g. Active)
  • deployment - namespace, replicas, ready_replicas, strategy, containers (name/image pairs)
  • service - namespace, type, cluster_ip, selector, ports
  • pod - namespace, status (phase), node_name, containers
  • job - namespace, completions, active, succeeded, failed

Edges

Edge typeFromTo
belongs_todeploymentnamespace
belongs_toservicenamespace
belongs_topodnamespace
belongs_tojobnamespace

Notes

Authentication is tried in this order:

  1. Explicit kubeconfig path from the config
  2. The KUBECONFIG environment variable
  3. In-cluster service account token (when running inside a pod)
  4. ~/.kube/config

Both bearer token and client certificate authentication from kubeconfig are supported.

KafkaMariaDB
On this page
UsageConfigurationOutputEdgesNotes