项目作者: zzh8829

项目描述 :
On-Demand Development Box on Kubernetes
高级语言: Shell
项目地址: git://github.com/zzh8829/kubox.git
创建时间: 2019-07-09T21:05:18Z
项目社区:https://github.com/zzh8829/kubox

开源协议:

下载


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

  1. kubectl apply -f .
  2. ./shell # kubectl exec
  3. # copy ssh key
  4. kubectl cp ~/.ssh/id_rsa.pub $KUBOX_POD:/home/kubox/.ssh/authorized_keys
  5. ./shell mosh # mosh
  6. ./shell ssh # ssh

Downside

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

Other steps

  1. # copy ssh key
  2. # gen ssh key
  3. ssh-keygen -N "" -C kubox