Git Product home page Git Product logo

qkrun's Introduction

功能介绍

  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

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.