Version: v1.8
Install KubeVela on Kubernetes
- Kubernetes cluster >= v1.19 && <= v1.26
KubeVela relies on Kubernetes as a control plane. The control plane could be any managed Kubernetes offering or your own clusters, such as:
- Alibaba Cloud ACK Service
- AWS EKS Service
- Azure AKS Service
- Google GKE Service
- Rancher K3s or RKE
KubeVela CLI provides an easy way to engage and manage your application delivery in command lines.
- Script
- Homebrew
- Download directly from releases
- Asdf-vm
- Docker
MacOS/Linux
curl -fsSl https://kubevela.net/script/install.sh | bash
Windows
note
Only the official release version is supported.
powershell -Command "iwr -useb https://kubevela.net/script/install.ps1 | iex"
MacOS/Linux
Update your brew first. Please note that the brew method only supports the installation of the official release version.
brew update
Then install KubeVela CLI
brew install kubevela
- Download the latest
velabinary file via release log. - Unzip the binary file, and configure the environment variables in
$PATH, and you’re done.
sudo mv ./vela /usr/local/bin/vela
note
- Installation Tips:
- If you are using a Mac system, it will pop up a warning that “vela” cannot be opened because the package from the developer cannot be verified.
- MacOS imposes stricter restrictions on the software that can run in the system. You can temporarily solve this problem by opening
System Preference ->Security & Privacy -> Generaland clicking onAllow Anyway.
MacOS/Linux
If you are using the asdf version manager, you can install vela with:
# Add the vela plugin for asdfasdf plugin add vela# List all installable versionsasdf list-all vela# Install the desired version (could be "latest")asdf install vela <version># set it as the global version, unless a project declares it otherwise locallyasdf global vela <version>
If you have docker environment, you can easily run CLI with the vela CLI docker image called oamdev/vela-cli:
$ docker run --rm -it -v ~/.kube:/root/.kube oamdev/vela-cli versionCLI Version: masterCore Version: v1.3.4GitRevision: git-1d823780GolangVersion: go1.17.10
Refer to using Vela CLI docker image for more usage.
- Default
- Helm
$ vela install
check out the outcome
...Watching for changes to Job kubevela-vela-core-cluster-gateway-tls-secret-patch with timeout of 18m0sAdd/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: ADDEDkubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 0, jobs failed: 0, jobs succeeded: 0Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIEDkubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 1, jobs failed: 0, jobs succeeded: 0Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIEDkubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 1, jobs failed: 0, jobs succeeded: 0Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIEDStarting delete for "kubevela-vela-core-admission" ServiceAccountStarting delete for "kubevela-vela-core-admission" ClusterRoleStarting delete for "kubevela-vela-core-admission" ClusterRoleBindingStarting delete for "kubevela-vela-core-admission" RoleStarting delete for "kubevela-vela-core-admission" RoleBindingStarting delete for "kubevela-vela-core-admission-patch" JobStarting delete for "kubevela-vela-core-cluster-gateway-admission" ServiceAccountStarting delete for "kubevela-vela-core-cluster-gateway-admission" RoleStarting delete for "kubevela-vela-core-cluster-gateway-admission" RoleBindingStarting delete for "kubevela-vela-core-cluster-gateway-tls-secret-patch" JobKubeVela control plane has been successfully set up on your cluster.If you want to enable dashboard, please run "vela addon enable velaux"
If you are helm user, you can also use helm to install KubeVela core:
note
helm v3.2.0+ required
helm repo add kubevela https://charts.kubevela.net/corehelm repo updatehelm install --create-namespace -n vela-system kubevela kubevela/vela-core --wait
VelaUX is a dashboard for KubeVela. It is a web application that runs in your cluster. You can access it with your browser. This is optional if you don’t use UI console of KubeVela.
Please refer to VelaUX Guide.
Please refer advanced installation
Last updated on May 6, 2023 by Tianxin Dong