Giter Site home page Giter Site logo

random-scheduler's Introduction

Random Kubernetes scheduler

This is a custom kubernetes scheduler that can be used for tutorials. It's not intended for production usage.

The scheduler watches pods and binds them to random nodes, then emits "Scheduled" events.

random-scheduler's People

Contributors

martonsereg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

random-scheduler's Issues

Error making the image in a raspberry pi

Hi,

I'm trying to make my own image of the random scheduler in a Raspberry Pi Kubernetes cluster, but when I use the command

docker build -t angel96eur/marton-randomscheduler .

I get this:

Sending build context to Docker daemon  185.9kB
Step 1/13 : FROM golang:1.11-alpine as backend
 ---> 2bf7a3ec2cd3
Step 2/13 : RUN apk add --update --no-cache bash ca-certificates curl git make tzdata
 ---> Using cache
 ---> 5e5d9d12a87e
Step 3/13 : RUN mkdir -p /go/src/github.com/martonsereg/scheduler
 ---> Using cache
 ---> 98179cd910c6
Step 4/13 : ADD Gopkg.* Makefile /go/src/github.com/martonsereg/scheduler/
 ---> Using cache
 ---> 70c615ff07f6
Step 5/13 : WORKDIR /go/src/github.com/martonsereg/scheduler
 ---> Using cache
 ---> 7cdb09255a20
Step 6/13 : RUN make vendor
 ---> Running in 2f0555b065c7
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | INSTALL_DIRECTORY=bin DEP_RELEASE_TAG=v0.5.0 sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5230  100  5230    0     0  14487      0 --:--:-- --:--:-- --:--:-- 14487
ARCH = arm
OS = linux
Will install into bin
Release Tag = v0.5.0
Fetching https://github.com/golang/dep/releases/tag/v0.5.0..
Fetching https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-arm..
Request failed with code 404
make: *** [Makefile:37: bin/dep-0.5.0] Error 1
The command '/bin/sh -c make vendor' returned a non-zero code: 2

Where the error could be?

Not enough replicas when creating adeployment for the scheduler

Dear Marton,
first off, happy Holidays and Merry Christmas if you celebrate it!
I found your repository when trying to follow this guide on writing own kubernetes scheduler: https://banzaicloud.com/blog/k8s-custom-scheduler. Their links are broken, but I assume they mean your scheduler.
However, I have a problem and I don't know if this is my local issue or a problem with the scheduler. Whenever I create a deployment, it does not create a pod, because not enough replicas are available:
image

I have re-created the deployment, but to no avail. I get a feeling that there should already be one replica before the deployment gets started? If I create deployments with other apps, they start the pods and get executed successfully. I am using a minikube setup.
Have you or other people ever experienced this issue? Do you have any idea how it can be solved?
I am very sorry if this question is inappropriate or comes at a wrong time. I really don't want to pester you, but I don't have any people I can ask about kubernetes setup.
Thank you a thousand times in advance and have a great evening!
Yours,
Svetlana.

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.