KubeHound DSL uses 'Source' steps to initiate traversals. You can start a query by targeting specific runs, clusters, or specific Kubernetes resource types (Containers, Pods, Nodes, etc.). Most resource steps allow an optional name filter and can be further refined using .has(key, value) or .limit(n).
// Start from a specific run
kh.run("RUN_ID")
// Start from a specific cluster
kh.cluster("kind-kubehound.local")
// Start from specific containers by name
kh.containers("elasticsearch", "mongo")
// Start from pods with additional filters
kh.pods().has("namespace", "ns1").limit(10)