https://github.com/zzh8829/kubox
On-Demand Development Box on Kubernetes
https://github.com/zzh8829/kubox
cloud-native devbox development-environment docker dotfiles kubernetes remote-work
Last synced: about 1 month ago
JSON representation
On-Demand Development Box on Kubernetes
- Host: GitHub
- URL: https://github.com/zzh8829/kubox
- Owner: zzh8829
- Created: 2019-07-09T21:05:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-29T17:00:37.000Z (almost 7 years ago)
- Last Synced: 2025-07-09T01:11:42.104Z (11 months ago)
- Topics: cloud-native, devbox, development-environment, docker, dotfiles, kubernetes, remote-work
- Language: Shell
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/zzh8829/dotfiles)
- No more one-off ad-hoc droplet/ec2/vps
- ssh port tcp:50022, mosh port udp:50023
## Usage
```bash
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
```