Version: v1.2

安装插件包

你可以通过安装 KubeVela 的插件包(Addon)获取更多的系统功能。

查看所有插件包

KubeVela 官方团队维护了一个默认的插件包仓库 (https://addons.kubevela.net),默认情况下会从这个仓库实时发现%EF%BC%8C%E9%BB%98%E8%AE%A4%E6%83%85%E5%86%B5%E4%B8%8B%E4%BC%9A%E4%BB%8E%E8%BF%99%E4%B8%AA%E4%BB%93%E5%BA%93%E5%AE%9E%E6%97%B6%E5%8F%91%E7%8E%B0).

  1. $ vela addon list
  2. terraform Terraform Controller is a Kubernetes Controller for Terraform. disabled
  3. velaux The KubeVela User Experience (UX ). Dashboard Designed as an extensible, application-oriented delivery and management control panel. disabled
  4. ocm-cluster-manager ocm-cluster-manager can deploy an OCM hub cluster environment. disabled
  5. fluxcd Extended workload to do continuous and progressive delivery disabled
  6. terraform-aws Kubernetes Terraform Controller for AWS disabled
  7. observability An out of the box solution for KubeVela observability disabled
  8. terraform-alibaba Kubernetes Terraform Controller for Alibaba Cloud disabled
  9. terraform-azure Kubernetes Terraform Controller for Azure disabled

安装插件包

  1. $ vela addon enable fluxcd
  2. I0111 21:45:24.553174 89345 apply.go:106] "creating object" name="addon-fluxcd" resource="core.oam.dev/v1beta1, Kind=Application"
  3. I0111 21:45:25.258914 89345 apply.go:106] "creating object" name="helm" resource="core.oam.dev/v1beta1, Kind=ComponentDefinition"
  4. I0111 21:45:25.342731 89345 apply.go:106] "creating object" name="kustomize-json-patch" resource="core.oam.dev/v1beta1, Kind=TraitDefinition"
  5. I0111 21:45:25.382201 89345 apply.go:106] "creating object" name="kustomize-patch" resource="core.oam.dev/v1beta1, Kind=TraitDefinition"
  6. I0111 21:45:25.411723 89345 apply.go:106] "creating object" name="kustomize" resource="core.oam.dev/v1beta1, Kind=ComponentDefinition"
  7. I0111 21:45:25.625815 89345 apply.go:106] "creating object" name="kustomize-strategy-merge" resource="core.oam.dev/v1beta1, Kind=TraitDefinition"
  8. I0111 21:45:25.660129 89345 apply.go:106] "creating object" name="component-uischema-helm" resource="/v1, Kind=ConfigMap"
  9. Addon: fluxcd enabled Successfully.

安装完成后,插件包中的功能会以组件,运维特征,工作流步骤等形式呈现,你可以通过 vela componentvela trait 等命令查看新增的能力,也可以在插件包的参考文档中查看每个官方插件包对应的能力.

删除/卸载已安装的插件包

删除前请确认插件包对应的能力没有被任何应用使用。

  1. $ vela addon disable fluxcd
  2. Successfully disable addon:fluxcd

查看插件包的下载仓库

  1. $ vela addon registry list
  2. Name Type URL
  3. KubeVela OSS https://addons.kubevela.net

添加插件包仓库

你可以添加自己的插件包仓库,目前支持 OSS 和 Github 两种仓库类型。

  1. $ vela addon registry add experimental --type OSS --endpoint=https://addons.kubevela.net --path=experimental/
  2. Successfully add an addon registry experimental

删除一个插件包仓库

  1. $ vela addon registry delete experimental
  2. Successfully delete an addon registry experimental

编写自己的插件包

请参考插件包制作文档