Skip to content
/ qkrun Public

start a develop environment quickly with k8s/docker/linux

Notifications You must be signed in to change notification settings

loyux/qkrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

功能介绍

  1. 利用容器、kubernetes、linux快速构建远程开发环境
  2. 自动生成构建极简配置文件

cli用法

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>

ENV

$HOME/.kube/config存在,try_default 将使用默认配置去连接kubernetes的api

example

快速创建:
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