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 Next

Introduction

Prism adds Kubernetes APIs to a KubeVela control plane for things KubeVela keeps in a shape that's awkward to grant access to. It is an aggregated API server: it registers its API groups with the hub's kube-apiserver, so kubectl, RBAC, client-go and anything else that speaks Kubernetes can use them like any built-in resource.

It has no etcd and stores nothing of its own. Every object it serves is built, on each request, from something that already exists: a ResourceTracker, a cluster Secret, a Grafana instance's HTTP API.

APIGroupWhat it is
ApplicationResourceTracker (apprt)prism.oam.dev/v1alpha1A namespaced view of KubeVela's cluster-scoped ResourceTrackers, so a Role in a namespace can let someone see what that namespace's Applications created. Read-only.
Cluster (vela-clusters)prism.oam.dev/v1alpha1The clusters KubeVela manages, without their credentials. Read-only.
Grafanao11y.prism.oam.dev/v1alpha1Access to a Grafana instance: its endpoint and a credential, kept in a Secret.
GrafanaDashboard, GrafanaDatasourceo11y.prism.oam.dev/v1alpha1A Grafana instance's dashboards and datasources, read and written through Grafana's HTTP API.
kubectl get apprt -n team-a # what team-a's Applications created
kubectl get vela-clusters # the managed clusters, no credentials
kubectl get grafanadashboards # dashboards in the Grafana named "default"

Who it's for​

  • Platform teams handing out access. ResourceTrackers are cluster-scoped and record every object every Application dispatched, and cluster Secrets hold credentials. Neither is safe to hand to an application team. Prism's views of them can be granted per namespace, or with no credentials in them, using plain RBAC.
  • Application teams on a shared hub. With read access to apprt in their namespace, vela status --tree works for them without cluster-wide access to ResourceTrackers; the only cluster-wide read it still needs is Cluster Gateway's virtualclusters (not Prism's clusters), which holds no credentials (see Clusters).
  • Anyone managing Grafana as code. Dashboards and datasources become Kubernetes objects, so an Application, a GitOps tool or kubectl apply can manage them, and Grafana stays the only place they're stored.

How it relates to KubeVela​

Prism isn't part of vela-core. It installs as the vela-prism addon, into vela-system, and runs beside the controller. From there:

  • The vela CLI uses it without being told. When a user can't list ResourceTrackers, vela status --tree and the other commands that read them fall back to ApplicationResourceTracker in the Application's namespace.
  • The observability addons build on it. o11y-definitions depends on vela-prism, and its grafana-access, grafana-dashboard, grafana-datasource and import-grafana-dashboard definitions, and the grafana config template, all write Prism objects. See Customize Dashboard and Cloud Service Integration.
  • VelaUX imports Prism's Go code for listing clusters, but reads the cluster Secrets with its own client, so it doesn't need Prism running.

How KubeVela's own permissions work, and where Prism fits in them, is in the KubeVela docs under Underlying Mechanism.

These pages describe Prism v1.7.0, the image the vela-prism addon runs. Versions lists what each KubeVela release gets, and where the published Helm chart (v1.6.0) differs.

Where next​

  • Install: the addon, or the Helm chart.
  • Quick Start: a namespace user reading their Application's resources, on a k3d cluster.
  • How Prism Serves Its APIs: what each API reads and writes, and whose permissions apply.