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: VelaUX Next

Install Options

Install VelaUX enables the addon with its defaults: one replica, data kept in the cluster, reachable only by port-forward. This page covers the rest. Every option is an addon parameter. To change one on a running VelaUX, use vela addon upgrade velaux <name>=<value>: it keeps the parameters you set before and changes only the ones you pass. Running vela addon enable velaux again instead applies exactly the parameters you give it, and drops the rest. See Upgrade VelaUX.

Parameters​

Pass these to vela addon enable velaux as name=value.

ParameterDefaultDescription
serviceTypeClusterIPService type: ClusterIP, NodePort or LoadBalancer.
nodePort30000Node port to use when serviceType=NodePort; ignored otherwise.
domainDomain to serve VelaUX on. Creates an Ingress (or a traefik route, see gatewayDriver).
gatewayDrivernginxnginx or traefik.
secretNameName of the TLS certificate Secret. Set it to serve VelaUX over HTTPS.
dbTypekubeapiWhere VelaUX stores its data: kubeapi, mongodb, mysql or postgres.
dbURLConnection URL for the database. Not used with kubeapi.
databaseDatabase name. With kubeapi, the namespace VelaUX stores its data in.
repoImage registry to pull the VelaUX image from, in place of Docker Hub.
imagePullSecretsNames of image pull Secrets for a private registry, for example imagePullSecrets={a,b}.
replicas1Number of VelaUX server replicas.
serviceAccountNamekubevela-uxServiceAccount the VelaUX server runs as.
enableImpersonationfalseSend requests to the Kubernetes API as the signed-in user, rather than as VelaUX's ServiceAccount.

Expose VelaUX with a Service type​

The serviceType parameter takes the Kubernetes Service types ClusterIP (the default), NodePort and LoadBalancer.

  • LoadBalancer needs a cloud load balancer in your cluster.
    vela addon enable velaux serviceType=LoadBalancer
  • NodePort needs you to reach the Kubernetes node IPs. VelaUX listens on node port 30000 unless you set nodePort.
    vela addon enable velaux serviceType=NodePort

Then get the address with vela status:

vela status addon-velaux -n vela-system --endpoint

Expected output:

+-----------------------------------+---------------------+
| REF(KIND/NAMESPACE/NAME) | ENDPOINT |
+-----------------------------------+---------------------+
| Service/vela-system/velaux-server | http://<IP address> |
+-----------------------------------+---------------------+

Expose VelaUX on a domain​

If your cluster has an ingress controller and a domain pointing at it, set domain:

vela addon enable velaux domain=example.domain.com

Expected output:

Addon velaux enabled successfully.
Please access addon-velaux from the following endpoints:
+-----------------------------------+---------------------------+
| REF(KIND/NAMESPACE/NAME) | ENDPOINT |
+-----------------------------------+---------------------------+
| Ingress/vela-system/velaux-server | http://example.domain.com |
+-----------------------------------+---------------------------+

If you enabled the traefik addon, set gatewayDriver=traefik to use the Gateway API instead:

vela addon enable velaux domain=example.domain.com gatewayDriver=traefik

To serve VelaUX over HTTPS:

  1. Create the certificate configuration. The certificate must match the domain.
vela config create velaux-cert -t tls-certificate -n vela-system cert=<CERT_BASE64> key=<KEY_BASE64>

The tls-certificate config template comes with the traefik addon, which gatewayDriver=traefik needs anyway.

  1. Enable VelaUX with the domain and the certificate:
vela addon enable velaux domain=example.domain.com gatewayDriver=traefik secretName=velaux-cert

Use an external database​

VelaUX stores its data in Kubernetes by default (dbType=kubeapi). For production, use a MongoDB, MySQL or PostgreSQL database that you run or rent, and pass its URL in dbURL.

vela addon enable velaux dbType=mongodb dbURL=mongodb://<MONGODB_USER>:<MONGODB_PASSWORD>@<MONGODB_HOST>:<MONGODB_PORT>

Pull the image from your own registry​

The image comes from Docker Hub by default. To pull it from your own registry, copy the image there and set repo:

vela addon enable velaux repo=your-registry.example.com

The VelaUX image then becomes your-registry.example.com/oamdev/velaux:<version>. Add imagePullSecrets if the registry needs credentials.