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
II 1aeabd8e74
feat: add param to ip_range. (#2325)
* feat: add param to ip_range.

Signed-off-by: joyceliu <joyceliu@yunify.com>

* feat: add param to ip_range.

Signed-off-by: joyceliu <joyceliu@yunify.com>

---------

Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-07-18 15:58:19 +08:00
.github fix: add goreleaser 2024-07-01 13:06:10 +08:00
build fix: add operator 2024-05-29 10:32:02 +08:00
builtin feat: add param to ip_range. (#2325) 2024-07-18 15:58:19 +08:00
cmd bug: defaultConfig is not render. 2024-07-15 17:13:49 +08:00
config/helm fix: change image name 2024-07-01 13:57:58 +08:00
docs/zh feat: add param to ip_range. (#2325) 2024-07-18 15:58:19 +08:00
exp feat: kubekey gitops 2024-01-05 15:14:36 +08:00
hack fix: add goreleaser 2024-07-01 13:06:10 +08:00
pkg feat: add param to ip_range. (#2325) 2024-07-18 15:58:19 +08:00
plugins feat: set base default dir for kubernetes connector. 2024-07-15 12:19:27 +08:00
scripts fix: add goreleaser 2024-07-01 13:06:10 +08:00
vendor feat: add vendor 2024-07-03 10:22:26 +08:00
version feat: kubekey gitops 2024-01-05 15:14: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 localhost cluster. it will use default kubeconfig(.kube/config). 2024-07-12 17:43:33 +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 fix: change image name 2024-07-01 13:57:58 +08:00
OWNERS doc: add github action 2024-06-28 10:43:32 +08:00
README.md doc: add docs 2024-06-27 13:31:52 +08:00
go.mod fix: format code. 2024-06-19 17:06:11 +08:00
go.sum feat: add artifact command. 2024-06-14 16:35:29 +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资源

文档

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