Giter Club home page Giter Club logo

kubox's Introduction

Kubox

On-demand dev box on kubernetes cluster

Dev boxes should be containerized and cloud native too.

Supports 3 modes of connection

  • kubectl exec (tunnel through http works anywhere)
  • ssh (port 50022, better performance, needs ssh connection)
  • mosh (port 50023, best performance, needs UDP connection)

Features

  • Remote development anywhere
  • Using existing docker on the Kubernetes host
  • Home directory on Persistent volume
  • Dev Environment setup using zzh8829/dotfiles
  • No more one-off ad-hoc droplet/ec2/vps
  • ssh port tcp:50022, mosh port udp:50023

Usage

kubectl apply -f .
./shell # kubectl exec

# copy ssh key
kubectl cp ~/.ssh/id_rsa.pub $KUBOX_POD:/home/kubox/.ssh/authorized_keys
./shell mosh # mosh
./shell ssh # ssh

Downside

  • Docker run works but mounting directory is difficult
  • Docker build depends on host docker version

Other steps

# copy ssh key


# gen ssh key
ssh-keygen -N "" -C kubox

kubox's People

Contributors

zzh8829 avatar

Watchers

 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.