Git Product home page Git Product logo

k8s-op-djs's Introduction

k8s-op-djs

How to run

Ensure you have kubectl and minikube installed. It's configured to run with docker driver.

  1. make minikube-start to create and start the cluster.
  2. kubectl apply -f ./djs/crd.yaml to register the custom resource.
  3. make docker-image to build docker image.
  4. minikube image load djs-demo:1.0 to load the docker image from your local docker into minikube.
  5. In mocker directory run make service-on-minikube. This will build & load docker image of mock service and start it in the cluster.
  6. kubectl apply -f ./example-rbac.yaml so Operator has access to the k8s API.
  7. kubectl create -f ./example-djs.yaml to create a k8s object of DynamicJobScheduler kind.
  8. kubectl get jobs to observe jobs being created, their naming will be djs-job-<person name>-<uuidv4>.
  9. Use kubectl logs -f <the name of the djs-operator pod> to observe what the Operator is processing.

To run step 5 you need to have a Python VirtualEnv created and packages installed with pip install -r requirements.txt.

k8s-op-djs's People

Contributors

ragecryx avatar

Watchers

 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.