Check if containers are using resource and request limits and other useful things.
Перейти к файлу
Sean Knox 853d4451e9
Fix image reference
2018-09-04 18:08:23 -07:00
.gitignore add initial program and deps 2018-08-17 15:44:06 -04:00
Dockerfile update Dockerfile with new project name 2018-08-23 16:01:52 -07:00
Gopkg.lock list by pod, add nodemetrics 2018-08-24 09:41:43 -07:00
Gopkg.toml list by pod, add nodemetrics 2018-08-24 09:41:43 -07:00
LICENSE Initial commit 2018-08-17 12:18:23 -07:00
README.md Fix image reference 2018-09-04 18:08:23 -07:00
kube_advisor.go list by pod, add nodemetrics 2018-08-24 09:41:43 -07:00
sa.yaml more namechange fallout 2018-08-23 16:02:55 -07:00

README.md

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