A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content
Version: v1.10

High Availability Deploy

If you're using KubeVela in production, make sure they're deployed in high availability mode like the architecture below.

VelaUXStateless frontendNginxStateless APIServerHA MongoDBclustersMasterSlaveSlaveKubeVela ControllerTerraform ControllerCloud providersCluster GatewayMulti Kubernetes clustersIoT / EdgeMaster-slave mode, sameas the KubeVela controllerStateless, just scalereplicas for itAddonsVelaUXVela PrismVela WorkflowArgoFluxOpenKruiseDaprCrossplaneTerraformOCMOpenYurt...Stateless, justscale replicasMaster-slave mode,same as theKubeVela controllerMake sure everyaddon you use hasa high availabilitydeployment

KubeVela Core Controller​

note

First of all, please make sure you have a high availability Kubernetes cluster for all the control plane components.

KubeVela core controller is a standard Kubernetes CRD controller that uses leader election for high availability. When it runs more than one replica, one replica holds the leader lease and reconciles, and the others stand by to take over if it goes down.

The recommend installation is:

helm install --create-namespace -n vela-system kubevela kubevela/vela-core --set replicaCount=3 --wait

If you have already installed, you can scale up with the command:

kubectl scale deploy -n vela-system kubevela-vela-core --replicas=3

Cluster Gateway​

The cluster gateway is a stateless component, it installed along with KubeVela core by default. You can scale it up when needed by:

kubectl scale deploy -n vela-system kubevela-cluster-gateway --replicas=3

VelaUX​

VelaUX is an addon, it composed by 3 major parts: nginx for frontend, APIServer as backend, and its database.

We strongly recommend to use high availability mongodb, mysql(beta) or postgresql(beta) cluster as the database driver. The frontend and backend are both stateless services, just configure multiple replicas for them. As a result, the high availability installation command just like below:

vela addon enable velaux dbType=mongodb dbURL=mongodb://<MONGODB_USER>:<MONGODB_PASSWORD>@<MONGODB_URL> replicas=3

You can refer Setup with the database for more info.