Git Product home page Git Product logo

k8s-scheduler's Introduction

k8s-scheduler

This repo contains 2 implementations of k8s scheduler examples. The rules of scheduling pods is quite simple, but they can show you how to create your own schedulers in k8s.

  1. A standalone scheduler server: hawq-scheduler
  2. An example of second scheduler in k8s 1.11, using extenders: hawq-scheduler-extender

Hawq scheduler

Hawq scheduler is a server that can run outside of k8s or in a container in k8s.

Hawq scheduler use client-go to get the pod that use hawq-scheduler as it's schedulerName. Here is an example for creating a pod using hawq-scheduler:

apiVersion: v1
kind: Pod
metadata:
  name: hawq-cluster-1-master-0
spec:
  containers:
    - name: hawq-master
      image: hawqbeijing/hawq_proxy:vcheng
  schedulerName: hawq-scheduler

With this type of scheduler, k8s has no idea if the scheduler is running or not, or even does not know it exist.

Hawq scheduler extender - Kubernetes scheduler extender

hawq scheduler extender can run with a registered k8s scheduler, it is set with a config file. Since k8s has moved scheduler extender from plugin to cmd recently, there is few examples on how to create a scheduler with extender. Well, this repo is what you can refer to :)

Read this link for more details

k8s-scheduler's People

Contributors

violet2016 avatar

Stargazers

 avatar

Forkers

hawq-cn

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.