Coder Social home page Coder Social logo

pod-commander's Introduction

pod-commander

A Clojure library designed to ... well, that part is up to you.

Usage

FIXME

Demo

Requirements

minikube and kubectl must be installed and available on PATH.

Notes

  • During setup minkube cluster would be reseted and all you data would be lost! So, you maybe need to backup minikube's VM first.

Setup and run

  1. In new shell (let name it shell-1) run ./demo/setup.
  2. After setup is done run ./demo/build_and_deploy in shell-1, wait til PODs status changed to Running and press Ctrl-C.
  3. Run kubectl --namespace=demo attach executor --container=c02 in shell-1 to attach to container of executor pod and check that printed listing (updated each 5 seconds) of /tmp directory doesn't contain hello.txt entry.
  4. In new shell (let name it shell-2) run kubectl --namespace=demo exec commander -it /bin/bash to get shell into commander POD's first container, run /command.sh and wait til command completed.
  5. Switch to shell-1 and check that printed listing (updated each 5 seconds) of /tmp directory now contains hello.txt entry.

License

Copyright © 2018 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

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.