Coder Social home page Coder Social logo

gongkunjxl / kubernetes-scheduler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from draios/kubernetes-scheduler

0.0 2.0 0.0 46 KB

Kubernetes custom scheduler based on Sysdig monitoring metrics

License: Apache License 2.0

Go 93.10% Python 6.90%

kubernetes-scheduler's Introduction

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

kubernetes-scheduler's People

Contributors

tembleking avatar mateobur avatar philrz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.