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 b79482aa05
refactor: move env to _const. (#2455)
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-11-13 06:06:59 +00:00
.github parent 82cc8fd489 2024-11-04 13:55:09 +08:00
build Feature capkk controller (#2419) 2024-10-29 17:57:05 +08:00
builtin parent 82cc8fd489 2024-11-04 13:55:09 +08:00
cmd fix: artifact package exclude `certs` (#2396) 2024-09-09 10:47:57 +08:00
config feat: add pipelinetemplate spec for kkcluster (#2426) 2024-10-10 13:57:33 +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 feature: use go template instance pongo2 template (#2340) 2024-08-05 10:06:49 +08:00
pkg refactor: move env to _const. (#2455) 2024-11-13 06:06:59 +00: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
vendor Add vendor directory (#2450) 2024-11-05 12:04:06 +08:00
version feat: add more golangci lint rule. (#2366) 2024-08-21 16:33:36 +08:00
.dockerignore fix: add operator 2024-05-29 10:32:02 +08:00
.gitignore fix: golangci-lint 2024-07-01 12:26:45 +08:00
.golangci.yaml feat: add more golangci lint rule. (#2366) 2024-08-21 16:33:36 +08:00
.goreleaser.yml bug: defaultConfig is not render. 2024-07-15 17:13:49 +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 Update kkcore crds (#2425) 2024-10-10 13:47:33 +08:00
OWNERS fix: error local router. (#2388) 2024-09-04 14:59:23 +08:00
README.md doc: add docs 2024-06-27 13:31:52 +08:00
go.mod Add vendor directory (#2450) 2024-11-05 12:04:06 +08:00
go.sum Feature capkk controller (#2419) 2024-10-29 17:57:05 +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, 和Pipeline资源来执行命令
Inventory: 任务执行的host清单. 用于定义与host相关, 与任务模板无关的变量. 详见参数定义
Config: 给任务模板设置全局变量. 用于定义与host无关, 与任务模板相关的变量. 详见参数定义
Pipeline: 指定执行的playbook文件

二进制执行

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

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

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

文档

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