Search your Kubernetes resources like you mean it.
Install with Krew • Download a release • See examples
- 🔍 Search resources by name pattern
- 📦 Filter results by selected kinds
- 🧭 Scope to a namespace or search broadly
- 🧠 Discover supported resources dynamically from the cluster
- ⚡ Reuse cached output with TTL control
- 🚀 Install via Krew, GitHub Releases, or source build
After the plugin is accepted into the official kubernetes-sigs/krew-index:
kubectl krew install ksearchDownload the latest archive from:
https://github.com/arush-sal/ksearch/releases
git clone https://github.com/arush-sal/ksearch.git
cd ksearch
make build
./ksearch --helpkubectl ksearch
kubectl ksearch -n kube-system
kubectl ksearch -n kube-system -p nginxSearch within one namespace:
kubectl ksearch -n defaultFind resources related to one workload:
kubectl ksearch -n prod -p nginxLimit output to selected kinds:
kubectl ksearch -n prod -k deployment,service,configmap,secretSkip cache for a fresh read:
kubectl ksearch --no-cache| Flag | Description |
|---|---|
-n, --namespace |
Namespace to search |
-p, --pattern |
Match resource names by substring |
-k, --kinds |
Comma-separated kinds or resources to include |
--cache-ttl |
Cache TTL, defaults to 1m |
--no-cache |
Skip cached output |
Environment override:
export KSEARCH_CACHE_TTL=30s- Resource discovery depends on what the current cluster exposes.
- Cached output is stored locally and reused until the TTL expires.
- Use
--no-cachewhen you need a fully fresh read.
Contributor-facing documentation lives in CONTRIBUTION.md.