Image Overview: kor

Overview: kor Chainguard Image

A Golang Tool to discover unused Kubernetes Resources

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/kor:latest

Kor - Kubernetes Orphaned Resources Finder

Kor is a tool to discover unused Kubernetes resources. Currently, Kor can identify and list unused:

  • ConfigMaps
  • Secrets
  • Services
  • ServiceAccounts
  • Deployments
  • StatefulSets
  • Roles
  • HPAs
  • PVCs
  • Ingresses
  • PDBs
  • CRDs

for more information refer kor

Installation

Docker

Run a container with your kubeconfig mounted:

docker run --rm -i cgr.dev/chainguard/kor:latest

docker run --rm -i -v "/path/to/.kube/config:/root/.kube/config" cgr.dev/chainguard/kor:latest all

Helm

Run as a cronjob in your Cluster (with an option for sending slack updates)

git clone https://github.com/yonahd/kor.git
helm upgrade --install kor \
    --namespace kor \
    --create-namespace \
    --set cronJob.enabled=true \
    --set cronJob.image.repository=cgr.dev/chainguard/kor \
    --set cronJob.image.tag=latest \
    --set prometheusExporter.enabled=true \
    --set prometheusExporter.deployment.image.repository=cgr.dev/chainguard/kor \
    --set prometheusExporter.deployment.image.tag=latest \
    --wait \
    --timeout=300s \
    ./kor/charts/kor

Last updated: 2024-03-01 12:14