dstrebel / kube-advisor

Check if containers are using resource and request limits and other useful things.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kube-advisor

kube-advisor is a diagnostic tool for Kubernetes clusters. At the moment, it returns pods that are missing resource and request limits.

screenshot

Running in a Kubernetes cluster without RBAC enabled

Just run the pod by itself:

# kubectl run --rm -i -t kube-advisor --image=mcr.microsoft.com/aks/kubeadvisor --restart=Never

Running in a Kubernetes cluster with RBAC enabled

Create the service account and cluster role binding

# kubectl apply -f https://raw.githubusercontent.com/Azure/kube-advisor/master/sa.yaml?token=ABLLDqUpCcBLHrAoMNOCwSahn4b-hwKKks5bl-0QwA%3D%3D

Run the pod

# kubectl run --rm -i -t kube-advisor --image=mcr.microsoft.com/aks/kubeadvisor --restart=Never --overrides="{ \"apiVersion\": \"v1\", \"spec\": { \"serviceAccountName\": \"kube-advisor\" } }"

If desired, delete the service account and cluster role binding

# kubectl delete -f https://raw.githubusercontent.com/Azure/kube-advisor/master/sa.yaml?token=ABLLDqUpCcBLHrAoMNOCwSahn4b-hwKKks5bl-0QwA%3D%3D

About

Check if containers are using resource and request limits and other useful things.

License:MIT License


Languages

Language:Go 86.1%Language:Dockerfile 13.9%