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: Prism 1.7

Configuration

Addon parameters​

Set with vela addon enable vela-prism <name>=<value>, or again later to change them; the addon page, vela-prism, has the same table.

ParameterDefaultWhat it sets
namespacevela-systemWhere cluster Secrets and OCM ManagedClusters are read from (--storage-namespace), and the namespace in the APIServices' service reference. Leave it at vela-system: see below.
imageoamdev/vela-prism:v1.7.0The image.
imagePullPolicyIfNotPresentIfNotPresent, Never or Always.
cpu0.1CPU request and limit.
memory200MiMemory request and limit.

The Deployment and Service always go to vela-system, and the serving certificate names vela-prism.vela-system.svc, whatever namespace says. Set namespace to anything else and the APIServices point at a Service that isn't there (ServiceNotFound), so every Prism API stops answering; set it back to vela-system to recover. A KubeVela that keeps its clusters elsewhere needs the chart. The addon has no parameter for --observability-namespace, so its Grafana Secrets are always in o11y-system, and none for replicas: it runs one pod.

Helm chart values​

For the published chart, 1.6.0. The chart at the v1.7.0 tag has the same values plus dynamicAPI.enabled.

ValueDefaultWhat it sets
replicaCount1Replicas. Prism keeps no state, so more than one is safe; the hub spreads requests across them through the Service.
port9443--secure-port, and the Service and APIService port.
imageRegistry""Prefix for every image the chart uses, including the certificate Jobs'. End it with /.
image.repositoryoamdev/vela-prism
image.tagv1.6.0 (latest at the tag)Set v1.7.0: see Install.
image.pullPolicyIfNotPresent
resources.limitscpu: 100m, memory: 200MiLimits only; no requests are set, so Kubernetes uses the limits as requests.
secureTLS.enabledtrueGenerate a certificate with Jobs and verify it from the hub. false registers the APIServices with insecureSkipTLSVerify.
secureTLS.certPath/etc/k8s-apiserver-certsWhere the certificate is mounted (--cert-dir).
secureTLS.certGen.imageoamdev/kube-webhook-certgen:v2.3The Job that makes the certificate.
secureTLS.certPatch.imageoamdev/cluster-gateway:v1.4.0The Job that writes the CA into the APIServices.
dynamicAPI.enabledtrueChart at the tag only: register dynamic.prism.oam.dev, and give Prism read and write on every resource. See Dynamic Resources.

The chart sets --storage-namespace to the release namespace, so install it where KubeVela keeps its clusters.

Flags​

Both installs run vela-prism --secure-port=9443 --feature-gates=APIPriorityAndFairness=false --cert-dir=/etc/k8s-apiserver-certs --storage-namespace=<namespace>. Prism's own flags:

FlagDefaultWhat it does
--storage-namespacevela-systemNamespace of cluster Secrets, and of the ManagedClusters Prism looks up by name.
--observability-namespaceo11y-systemNamespace of the grafana.<name> Secrets behind Grafana objects.
--request-timeout1m0sHow long a request may take, including the call to Grafana behind a dashboard or datasource.
--min-request-timeout1800The standard API server setting; Prism has no watches for it to apply to.

The rest are the standard Kubernetes API server flags (--secure-port, --cert-dir, --tls-cert-file, --authentication-kubeconfig, audit logging, and so on) and klog's (-v, --vmodule). vela-prism --help lists them all.

--feature-gates=APIPriorityAndFairness=false turns off API Priority and Fairness inside Prism; the hub's kube-apiserver still applies its own.

The addon has no way to change the other flags: a hand edit to its Deployment lasts only until KubeVela next applies addon-vela-prism, for instance when the addon is enabled again. Use the chart for that. On a chart install, the arguments are in the template; helm template and a post-renderer, or a fork of the chart, are the ways in.

Sizing​

Prism holds nothing in memory between requests and has no informers, except the ConfigMap informer for dynamic resources in v1.7.0. Every get or list is a fresh read of the backing objects, so its cost follows how often clients call it, not how many objects there are. The defaults (0.1 CPU, 200Mi) are plenty for a hub where people run vela status; give it more if a dashboard or controller polls apprt or vela-clusters in a loop.