Needs More Capabilities?
There’re many out-of-box capabilities installed along with KubeVela controller, refer to the following links to learn more details:
Installing addon from the community is also one of the most important way to discover more capabilities.
KubeVela community has maintained a growing which will be synced to the default addon registry (https://addons.kubevela.net). You can use vela command line to list all available addons by:
The command will show the basic addon info along with all available versions and installed versions.
rollout KubeVela Provides basic batch publishing capability. [1.3.0, 1.2.4, 1.2.3] disabled
terraform KubeVela Terraform Controller is a Kubernetes Controller for Terraform. [1.0.6] disabled
terraform-aws KubeVela Kubernetes Terraform Controller for AWS [1.0.1, 1.0.0] disabled
dex KubeVela Enable dex for login [0.6.5] disabled
fluxcd KubeVela Extended workload to do continuous and progressive delivery [1.1.0, 1.0.0] disabled
velaux KubeVela KubeVela User Experience (UX). An extensible, application-oriented delivery and management Dashboard. [v1.3.0, v1.3.0-beta.2, 1.2.4] enabled (v1.3.0)
terraform-alibaba KubeVela Kubernetes Terraform Controller for Alibaba Cloud [1.0.2, 1.0.1] disabled
...snip...
- You can refer to for more details of these community certificated addons.
Install Addon
Install with CLI
The simplest command for installing one addon is:
vela addon enable fluxcd
The expected output.
I0111 21:45:24.553174 89345 apply.go:106] "creating object" name="addon-fluxcd" resource="core.oam.dev/v1beta1, Kind=Application"
I0111 21:45:25.258914 89345 apply.go:106] "creating object" name="helm" resource="core.oam.dev/v1beta1, Kind=ComponentDefinition"
I0111 21:45:25.342731 89345 apply.go:106] "creating object" name="kustomize-json-patch" resource="core.oam.dev/v1beta1, Kind=TraitDefinition"
I0111 21:45:25.382201 89345 apply.go:106] "creating object" name="kustomize-patch" resource="core.oam.dev/v1beta1, Kind=TraitDefinition"
I0111 21:45:25.411723 89345 apply.go:106] "creating object" name="kustomize" resource="core.oam.dev/v1beta1, Kind=ComponentDefinition"
I0111 21:45:25.625815 89345 apply.go:106] "creating object" name="kustomize-strategy-merge" resource="core.oam.dev/v1beta1, Kind=TraitDefinition"
I0111 21:45:25.660129 89345 apply.go:106] "creating object" name="component-uischema-helm" resource="/v1, Kind=ConfigMap"
Addon: fluxcd enabled Successfully.
You can also install addons with some advanced flags.
Install addon with specified version
- Choose one specific version by adding
--version
flag in this command. e.g:
vela addon enable fluxcd --version=1.0.0
- Choose specific clusters for installation. You can use
--cluster
flag to choose specific clusters. e.g:
vela addon enable <addon-name> --clusters={cluster1,cluster2}
By default, the place for installation is specified as control plane cluster or managed cluster inside the metadata of addon.
- Some addons support setting parts of parameter while enabling. For example
velaux
addon supports change image repository by settingrepo
parameter, then you can change the repo address to your own. e.g:
Air-Gapped Installation for Addon
If your cluster network cannot connect to the community addon registry you can:
- build your custom addon registry. Please refer to Build your Own Registry for details.
- enable an addon from a local directory. Example:
- Enable the addon from local directory.
vela addon enable ./velaux
expected output
Addon: velaux enabled successfully
caution
Please notice that, while an addon is being installed in a cluster, it maybe still need pull some images or Helm Charts. If your cluster cannot reach these resources please refer to complete installation without Internet access.
Install addon with UI Console
If you have installed which is also one of the addon, you can manage it directly on the UI console with admin privileges.
In the addon list, you can get the status of the addon and other info. Click the addon name could open the addon detail page, you can get the version list, definitions provided by the addon, and the readme message.
Select a version and deployed clusters, you can click the enable button to install this addon. You can check detail information in this section include:
- Definitions: The extension capabilities provided by the addon may include component, trait, etc.
- README: Addon description, explain the capabilities and related information.
Install addon by kubectl
When you want to deploy addon in the format of YAML or using kubectl
instead of using vela CLI, you can render the yaml out by:
vela addon enable velaux --dry-run
expected output
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
creationTimestamp: null
labels:
addons.oam.dev/registry: KubeVela
addons.oam.dev/version: v1.5.8
name: addon-velaux
namespace: vela-system
spec:
components:
- name: apiserver
properties:
cmd:
- apiserver
- --datastore-type=kubeapi
image: oamdev/vela-apiserver:v1.5.8
ports:
- expose: true
port: 8000
protocol: TCP
traits:
- properties:
name: kubevela-vela-core
type: service-account
- properties:
replicas: 1
type: scaler
type: webservice
- dependsOn:
- apiserver
name: velaux
properties:
env:
value: apiserver.vela-system:8000
exposeType: ClusterIP
image: oamdev/velaux:v1.5.8
- expose: true
port: 80
protocol: TCP
traits:
- properties:
replicas: 1
type: scaler
type: webservice
status: {}
---
apiVersion: v1
data:
ui-schema: '[{"jsonKey":"selector","sort":100,"uiType":"ComponentSelect"},{"jsonKey":"components","sort":101,"uiType":"ComponentPatches"}]'
kind: ConfigMap
metadata:
creationTimestamp: null
name: policy-uischema-override
namespace: vela-system
... snip ...
You can install the addon by one command like:
vela addon enable velaux --dry-run | kubectl apply -f -
caution
Use dry-run can render YAML results and you will also lose the validation such as vela-core version check, dependency, etc. Make sure the version you used can match to your Kubernetes clusters.
If you want to check the detail status of an addon, or get more available parameters and other useful info of an addon, you can use command addon status
. For example:
vela addon enable velaux --verbose
expected output
As above shows, these infos contain the available parameters, available versions, dependent addons and description of and addon.
Discover the capabilities installed
tip
Once addon installed, end user can discover and use these capabilities immediately.
You can also check the capability details of .
danger
Please make sure the addon along with its capabilities is no longer used in any of your applications before uninstalling it.
vela addon disable fluxcd
expected output
Successfully disable addon:fluxcd
Manage Addon Registry
You can also manage the addon registries, such as adding/deleting your private addon registry. Let’s take the experimental community registry as example.
- List your current registries
vela addon registry list
expected output
Name Type URL
KubeVela helm https://addons.kubevela.net
- Add a new registry
vela addon registry add experimental --type=helm --endpoint=https://addons.kubevela.net/experimental/
expected output
Successfully add an addon registry experimental
- Delete one registry
expected output
Build custom registry
You can use ChartMuseum to build your custom addon registry. We have a ChartMuseum addon available. Please refer to Build your Own Registry for details.
If you’re a system infra or operator, you can refer to extension documents to learn how to make your own addon and registry, including .
tip
Here’s a blog introduces how to build addon from scratch using redis operator as example, you can read it as an end to end tutorial!
- KubeVela use CUE as it’s core engine, learn Manage Definition with CUE and try to extend capabilities with definitions.
- Read the to learn how to contribute and extend capabilities for KubeVela.
Welcome to join the KubeVela community! We’re eager to see you to contribute your extension.