7 Star 12 Fork 1

Rick / ks

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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)
MIT License Copyright (c) 2020 Zhao Xiaojie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

KubeSphere 命令行客户端,用户通过命令行可以在 KubeSphere 上创建流水线、启用可插拔组件等等功能 展开 收起
MIT
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/linuxsuren/ks.git
git@gitee.com:linuxsuren/ks.git
linuxsuren
ks
ks
master

搜索帮助