Skip to main content
Version: v3

Extensions API

The Extensions API is the set of methods and configuration objects that your extension uses to register itself with Rancher and modify the UI. It is split into three areas:

AreaWhat it covers
NavigationAdding products, pages, and side-menu entries
UI Extension PointsInjecting content into existing Rancher pages (tabs, panels, cards, actions, table columns)
Components & ResourcesReusing Rancher shell components and registering custom resource views

Use these APIs when you want to add new pages or products to the Rancher UI.

APIWhen to use
ProductsRegister a top-level product (adds a nav entry in the main sidebar)
Side Menu (basicType)Add pages as entries in the product's side menu
Routing (addRoutes)Define the Vue Router routes that back your pages
Resource Page (configureType)Expose a Kubernetes resource as a navigable list/detail page inside your product
Custom Page (virtualType)Add a fully custom page (not backed by a K8s resource) to your product
Page TemplatesChoose a layout template (blank, default) for your custom or resource pages
Product RegistrationExperimental API for declarative product registration (Rancher 2.15+)

UI Extension Points

Use these APIs to inject content into existing Rancher pages without replacing them.

APIWhere content appearsMethod
ActionsHeader toolbar or resource list table row menusaddAction
TabsResource detail, create, edit pages, or the "Show configuration" slide-inaddTab
PanelsResource detail masthead, top-of-detail area, resource list, or About pageaddPanel
CardsCluster Dashboard pageaddCard
Table ColumnsResource list view tablesaddTableColumn
Table HooksLow-level access to table rendering behaviouraddTableHook

All extension point methods share a common LocationConfig object that controls where and when the enhancement is shown (by product, resource, cluster, namespace, mode, etc.).


Components & Resources

APIWhen to use
Shell ComponentsReuse Rancher's built-in UI components (forms, inputs, banners, etc.) inside your extension pages
Resource ViewsOverride or extend the list/detail/edit views Rancher generates for Kubernetes resources
Auto-ImportAutomatically register models, detail views, and edit views from folder conventions

Common Types

ReferenceDescription
LocationConfigShared config object that scopes all UI extension points to specific products, resources, clusters, etc.
ConceptsGlossary of terms (top-level product, blank cluster, DSL, etc.)
MetadataRequired extension metadata (plugin.metadata) displayed in the Extensions marketplace

Support Matrix

For a breakdown of which API hooks are available in each Rancher version, see the Extension API Support Matrix.

Examples

Working code examples that use these APIs can be found in the Rancher UI Plugin Examples repository and throughout the Usecases section.