a simple and tiny scheduler for learning scheduling algorithm.
first you need a k8s cluster, with its kubeconfig placed at ~/.kube/config. I use minikube for testing.
go run tiny-scheduler.go -alsologtostderr=truekubectl apply -f test/tiny-pod.yamlthen you will see something like this:
I0106 23:07:24.375661 71650 scheduler.go:105] Scheduled podInfo tiny-pod to node minikube