7 Star 12 Fork 1

Rick / ks

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README-zh.md 3.08 KB
一键复制 编辑 原始数据 按行查看 历史

Gitpod ready-to-code Contributors GitHub release GitHub All Releases

ks

ksKubeSphere 的命令行客户端,可以简化用户、开发者的日常操作。

Get started

通过 brew 安装: brew install linuxsuren/linuxsuren/ks

通过 hd 安装:

brew install linuxsuren/linuxsuren/hd
hd install kubesphere-sigs/ks

特色功能

以下的表述默认是以 KubeSphere 为上下文的:

  • 组件管理
    • 启用、禁用组件
    • 手动(或自动)更新指定组件
    • 输出组件日志
    • 编辑组件
    • 查看组件的事件(也就是命令 kubectl describe 的包装)
  • 流水线管理
    • 通过 java, go 等模板创建流水线
    • 编辑流水线
  • 重置用户密码
  • 支持通过设置环境变量 kubernetes_type=k3s 操作 k3s
  • 安装 KubeSphere

组件

➜  ~ kubectl ks com
Manage the components of KubeSphere

Usage:
  ks component [command]

Aliases:
  component, com

Available Commands:
  edit        Edit the target component
  enable      Enable or disable the specific KubeSphere component
  exec        Execute a command in a container.
  kill        Kill the pods of the components
  log         Output the log of KubeSphere component
  reset       Reset the component by name
  watch       Update images of ks-apiserver, ks-controller-manager, ks-console

流水线

➜  ~ kubectl ks pip
Usage:
  ks pipeline [flags]
  ks pipeline [command]

Aliases:
  pipeline, pip

Available Commands:
  create      Create a Pipeline in the KubeSphere cluster
  delete      Delete a specific Pipeline of KubeSphere DevOps
  edit        Edit the target pipeline
  view        Output the YAML format of a Pipeline

Flags:
  -h, --help   help for pipeline

Use "ks pipeline [command] --help" for more information about a command.

安装

Install KubeSphere with kind or kk

Usage:
  ks install [command]

Available Commands:
  kind        Install KubeSphere with kind
  kk          Install KubeSphere with kubekey (aka kk)
Go
1
https://gitee.com/linuxsuren/ks.git
git@gitee.com:linuxsuren/ks.git
linuxsuren
ks
ks
master

搜索帮助