Skip to content

Kubernetes custom scheduler based on Sysdig monitoring metrics

License

Notifications You must be signed in to change notification settings

draios/kubernetes-scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Scheduler

Custom Kubernetes scheduler using Sysdig metrics - Introduction

This repository covers the use case of creating a custom Kubernetes scheduler written in Go.

It's just an example of how a Scheduler could be built, but currently there are some things not being handled at the moment in this scheduler:

  • Pod labels like NoSchedule, NoExecute...
  • Race conditions in case other scheduler schedules the same Pod.
  • Prometheus metrics (we are working on it)
  • Pod deployment
  • Advanced scheduling (node affinity/anti-affinity, taints and tolerations, pod affinity/anti-affinity, ...)

When you write a custom scheduler you have to take all this things into account because you are on your own.

You can find more information about why and how create custom Kubernetes schedulers in our blog.

Build requirements

  • Golang for compilation
  • Operating system:
    • GNU/Linux
    • MacOS
    • Windows
  • x86 / x86_64 architecture
  • Git
  • g++ (Linux / MacOS) / MinGW (Windows)

Build

Using go get

go get -u -v -t github.com/draios/kubernetes-scheduler

The app should be compiled in $GOPATH/bin/kubernetes-scheduler

Sysdig Kubernetes scheduler - TODO

  • Deployment as a pod
  • Print useful events in the Kubernetes event log
  • Honor node lables (Affinity, NoSchedule, etc)
  • Add timeouts & timeout handling functions
  • Abstract away the decision & metrics source functions (make this scheduler more generic and vendor neutral)
  • Add test files
  • Locks to avoid race conditions in case we deploy multiple instances

Copyright

License: Apache 2.0

Read file LICENSE.

Links

About

Kubernetes custom scheduler based on Sysdig monitoring metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •