Install Kubernetes/K3s only, both Kubernetes/K3s and KubeSphere, and related cloud-native add-ons, it supports all-in-one, multi-node, and HA 🔥🐳
Go to file
liujian 9c87926929
feat: add web api (#2591)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-05-26 09:36:13 +00:00
.github feat: delete /var/log/pods/ (#2556) 2025-05-07 17:41:00 +08:00
api support prometheus tasks (#2573) 2025-05-16 08:52:03 +00:00
build Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
builtin feat: add web api (#2591) 2025-05-26 09:36:13 +00:00
cmd feat: add web api (#2591) 2025-05-26 09:36:13 +00:00
config feat: add web api (#2591) 2025-05-26 09:36:13 +00:00
docs/zh support prometheus tasks (#2573) 2025-05-16 08:52:03 +00:00
exp feat: kubekey gitops 2024-01-05 15:14:36 +08:00
hack Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
kubernetes-app Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
pkg feat: add web api (#2591) 2025-05-26 09:36:13 +00:00
plugins feat: More detailed init-os rules (#2563) 2025-05-13 09:25:01 +00:00
scripts fix: add goreleaser 2024-07-01 13:06:10 +08:00
version feat: add more golangci lint rule. (#2366) 2024-08-21 16:33:36 +08:00
.dockerignore Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
.gitignore Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
.go-version Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
.golangci.yaml feat: add web api (#2591) 2025-05-26 09:36:13 +00:00
.goreleaser.yaml Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
CONTRIBUTORS.md feat: kubekey gitops 2024-01-05 15:14:36 +08:00
LICENSE feat: kubekey gitops 2024-01-05 15:14:36 +08:00
Makefile fix: change pipeline to playbook (#2512) 2025-03-24 09:51:03 +08:00
OWNERS fix: error local router. (#2388) 2024-09-04 14:59:23 +08:00
README.md fix: change pipeline to playbook (#2512) 2025-03-24 09:51:03 +08:00
go.mod feat: add web api (#2591) 2025-05-26 09:36:13 +00:00
go.sum feat: add web api (#2591) 2025-05-26 09:36:13 +00:00

背景

当前kubekey中如果要添加命令或修改命令都需要提交代码并重新发版。扩展性较差。

  1. 任务与框架分离优势目的更方便扩展借鉴ansible的playbook设计
  2. 支持gitops可通过git方式管理自动化任务
  3. 支持connector扩展
  4. 支持云原生方式自动化批量任务管理

安装kubekey

kubernetes中安装

helm upgrade --install --create-namespace -n kubekey-system kubekey kubekey-1.0.0.tgz

然后通过创建Inventory, Config, 和Playbook资源来执行命令
Inventory: 任务执行的host清单. 用于定义与host相关, 与任务模板无关的变量. 详见参数定义
Config: 给任务模板设置全局变量. 用于定义与host无关, 与任务模板相关的变量. 详见参数定义
Playbook: 指定执行的playbook文件

二进制执行

可直接用二进制在命令行中执行命令

kk run -i inventory.yaml -c config.yaml playbook.yaml

运行命令后, 会在工作目录的runtime下生成对应的Inventory, Config和Playbook资源

文档

项目模版编写规范
模板语法
参数定义