- 利用容器、kubernetes、linux快速构建远程开发环境
- 自动生成构建极简配置文件
1 0.1.1
loyu [email protected]
make a containerd vscode-server
USAGE:
quickrun <SUBCOMMAND>
OPTIONS:
-h, --help Print help information
-V, --version Print version information
SUBCOMMANDS:
docker start container with ssh ubuntu20.04<docker>
help Print this message or the help of the given subcommand(s)
kaniko-docker 构建镜像,或生成配置模板<docker>
kaniko-pod 构建镜像,或生成配置模板<kubernetes>
plugins vscode-client remotessh install tools<vscode>
quick start a statefulset container quickly<kubernetes>
start start a statefulset <kubernetes>
$HOME/.kube/config存在,try_default 将使用默认配置去连接kubernetes的api
快速创建:
qkrun start --pv d1pv --pvc d1pvc --volume /vdb/testpv/ --stsname apps --passwd admin
volume使用hostpath,讲pod卷挂载到指定宿主机磁盘位置
快速删除
qkrun start --pv d1pv --pvc d1pvc --volume /vdb/testpv/ --stsname apps --passwd admin --delete true
NAME READY STATUS RESTARTS AGE
apps-0 1/1 Running 0 88s
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
d1pv 20Gi RWO Retain Bound default/d1pvc d1pv 105s
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
d1pvc Bound d1pv 20Gi RWO d1pv 2m3s