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 61d0bb2b51
feat: add more ignore_errors when kk delete (#2533)
Signed-off-by: joyceliu <joyceliu@yunify.com>
2025-04-16 10:28:30 +08:00
.github Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
api feat: add register_type (#2532) 2025-04-16 10:03:30 +08:00
build Uninstall docker interface (#2478) 2025-03-05 18:55:12 +08:00
builtin feat: add more ignore_errors when kk delete (#2533) 2025-04-16 10:28:30 +08:00
cmd feat: Thread-safe reading and writing (#2531) 2025-04-16 09:50:28 +08:00
config feat: change default criSocket to docker (#2517) 2025-03-28 15:40:08 +08:00
docs/zh feat: add more golangci lint rule. (#2366) 2024-08-21 16:33:36 +08: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 register_type (#2532) 2025-04-16 10:03:30 +08:00
plugins feat: add more golangci lint rule. (#2366) 2024-08-21 16:33:36 +08: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 fix: change pipeline to playbook (#2512) 2025-03-24 09:51:03 +08: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 fix: change pipeline to playbook (#2512) 2025-03-24 09:51:03 +08:00
go.sum fix: change pipeline to playbook (#2512) 2025-03-24 09:51:03 +08: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资源

文档

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