Skip to main content
版本:v1.4

自定义安装和升级

安装 KubeVela 生产环境

1. 安装条件:

  • Kubernetes cluster >= v1.19 && <= v1.22

KubeVela 依赖 Kubernetes 作为管控平面,你需要自行搭建生产可用的 Kubernetes 集群,支持的方式包括:

2. 安装 KubeVela 命令行

KubeVela CLI 提供了常用的集群和应用管理能力。

MacOS/Linux

curl -fsSl https://kubevela.net/script/install.sh | bash -s v1.4.9

Windows

powershell -Command "iwr -useb https://kubevela.net/script/install.ps1 | iex"

3. Install KubeVela Core

$ vela install --version v1.4.9
正常安装出现下述日志
...
Watching for changes to Job kubevela-vela-core-cluster-gateway-tls-secret-patch with timeout of 18m0s
Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: ADDED
kubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIED
kubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIED
kubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIED
Starting delete for "kubevela-vela-core-admission" ServiceAccount
Starting delete for "kubevela-vela-core-admission" ClusterRole
Starting delete for "kubevela-vela-core-admission" ClusterRoleBinding
Starting delete for "kubevela-vela-core-admission" Role
Starting delete for "kubevela-vela-core-admission" RoleBinding
Starting delete for "kubevela-vela-core-admission-patch" Job
Starting delete for "kubevela-vela-core-cluster-gateway-admission" ServiceAccount
Starting delete for "kubevela-vela-core-cluster-gateway-admission" Role
Starting delete for "kubevela-vela-core-cluster-gateway-admission" RoleBinding
Starting delete for "kubevela-vela-core-cluster-gateway-tls-secret-patch" Job

KubeVela control plane has been successfully set up on your cluster.
If you want to enable dashboard, please run "vela addon enable velaux"

4 安装 VelaUX

请参考 VelaUX 插件文档.

升级

1. 升级 CLI

MacOS/Linux

curl -fsSl https://kubevela.io/script/install.sh | bash -s v1.4.9

Windows

Only the official release version is supported.

powershell -Command "iwr -useb https://kubevela.io/script/install.ps1 | iex"

2. 升级 Vela Core

请先升级 Vela CLI 到最新的稳定版本,默认情况下将安装与 CLI 匹配的 Vela Core 版本。

vela install --version v1.4.9

3. 升级 VelaUX

vela addon enable velaux --version v1.4.7

Uninstall

在卸载 KubeVela 之前,请确保已删除所有应用和禁用所有插件。

  1. 卸载 VelaUX
vela addon disable velaux
  1. 卸载 KubeVela Core
vela uninstall
  1. 卸载 CRD
kubectl get crd |grep oam | awk '{print $1}' | xargs kubectl delete crd

Install KubeVela with cert-manager

By default, KubeVela will use a self-signed certificate provided by kube-webhook-certgen for admissionWebhooks. You can also use cert-manager if it's available. Note that you need to install cert-manager before the KubeVela chart.

helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager --namespace cert-manager --version v1.2.0 --create-namespace --set installCRDs=true

Install kubevela with enabled certmanager:

vela install --set admissionWebhooks.certManager.enabled=true

Install Pre-release

# List all releases
vela version list -a

# Install the specified version.
vela install --version 1.4.0-beta.2

Install Kubectl Vela Plugin

kubectl-vela provides the same features with vela CLI, it helps you to integrate with kubectl better.

  1. Install and set up Krew on your machine.
  2. Discover plugins available on Krew:
kubectl krew update
  1. install kubectl vela:
kubectl krew install vela