This repository contains a Kubernetes scheduler code for random node assignment.
$ make docker-build
$ make docker-push
$ kubectl apply -f deploy/pod.yaml
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx 0/1 Pending 0 5s
$ kubectl apply -f deploy/scheduler.yaml
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx 1/1 Running 0 44s
scheduler 1/1 Running 0 17s
$ kubectl logs scheduler
Starting scheduler: packt-scheduler
Assigning default/nginx to minikube
$ kubectl delete -f deploy/pod.yaml
$ kubectl delete -f deploy/scheduler.yaml
- glide is used for vendoring and dependency management.
- If you need to change client library version, update
glide.yaml
file and runglide up
.