20.10.2025

Kor - a tool for finding unused resources in Kubernetes

Kor is an open-source tool designed to discover unused resources in a Kubernetes cluster. It helps administrators and developers optimize infrastructure by removing “orphaned” objects that are no longer used but still consume resources and complicate management.

Project repository: github.com/yonahd/kor

Why You Need Kor

Over time, a Kubernetes cluster may accumulate many unused objects — for example:

Such resources:

Kor automates the discovery of such objects, simplifying cluster maintenance and improving efficiency.

How Kor Works

Kor connects to your Kubernetes cluster using a kubeconfig file and analyzes resource metadata. The tool maps relationships between resources — for example, checking which ConfigMaps are used by running pods and which PersistentVolumeClaims are mounted.

The result is a detailed report that shows:

Example Usage

You can install Kor via go install or by downloading a binary from the GitHub repository:

go install github.com/yonahd/kor@latest

After installation, simply specify your cluster context:

kor --context my-cluster

Kor will scan the specified context and display a list of unused resources:

❯ kor
Namespace: default

ConfigMap: unused-config

Secret: old-credentials

You can also configure filters and output parameters, for example:

kor --namespace production --resource configmaps,secrets

Advantages of Using Kor

Conclusion

Kor is a valuable tool for DevOps engineers and Kubernetes administrators who want to keep their clusters clean and efficient. It helps identify and remove unused resources, reducing load and improving environment manageability.

FAQ