Skip to content

Latest commit

 

History

History
100 lines (76 loc) · 3.08 KB

README-zh.md

File metadata and controls

100 lines (76 loc) · 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)