Applications — Marketplace releases and VM app templates
Module:
services/applications· Image:nebius-mocker-applications·NEBIUS_MOCKER_SERVICES=applicationsM1 tier: T1 k8s release (inventory only) · T0 VM app templates · Endpoints:deployment-manager.mkt(K8sRelease),apps.msp(VmAppTemplate)
Implementation status
| Piece | Status |
|---|---|
nebius.applications.v1alpha1.K8sReleaseService: Create, Get, List (paged, by parent_id and cluster_id), Update, Delete |
✅ T1, inventory only |
Release lifecycle status.state: CREATED then DEPLOYED; INSTALLING then DEPLOYED on update |
✅ |
Seeded product catalog (NEBIUS_MOCKER_APPLICATIONS_PRODUCTS) |
✅ (mock slugs) |
values and set are input-only: kept for updates, never returned |
✅ |
Releases are deleted with their mk8s cluster (peer.ClusterReleases) |
✅ |
Authorization: applications.k8sReleases.* for every release RPC |
✅ |
nebius.applications.v1alpha1.VmAppTemplateService: Get, List |
UNIMPLEMENTED (registered, open to any authenticated principal) |
nebius_applications_v1alpha1_k8s_release resource and data source with the official provider |
✅ e2e: test/terraform/applications |
nebius applications v1alpha1 k8s-release CLI flows |
✅ e2e: test/cli/mk8s |
Installing the chart into Kubernetes (Helm), with failures in status.error_message |
Not yet (needs the mk8s k3s backend) |
List filter |
Rejected with INVALID_ARGUMENT |
Verified against: nebius/api@4522189, terraform-provider-nebius v0.6.91, gosdk v0.2.100, nebius CLI 0.12.312.
Covered by unit tests (services/applications/{domain,dal,api}), gosdk contract tests
(test/contract/applications_release_test.go: CRUD, validation, cluster-delete cascade, authorization), the Terraform
e2e suite (test/terraform/applications) and the CLI e2e suite (test/cli/mk8s), all run by make e2e.
Behavior notes
These follow the protos. Where they do not say what happens, the mock’s choice is marked (mock).
- Inventory only.
Create,Update,Delete,GetandListvalidate and store releases and walkstatus.state. Nothing is installed into the Kubernetes cluster, and no chart is pulled. - Create needs
spec.cluster_idto be an existing mk8s cluster of the same project (parent_id) andRUNNING(FAILED_PRECONDITIONotherwise), and a different project isINVALID_ARGUMENT; the cluster is found throughpeer.MK8sClusters, so themk8smodule must be enabled.metadata.idandresource_versionmust not be set. The release is storedCREATEDand becomesDEPLOYEDwhen the operation completes (NEBIUS_MOCKER_OP_DELAYmakes theCREATEDstate observable). - Validation.
spec.product_slugmust be in the catalog;spec.namespaceandspec.application_namemust be DNS-1123 labels (at most 63 lowercase alphanumeric characters or-);spec.valuesmust be valid YAML (the parse error is not echoed, since values are sensitive);spec.setkeys must not be empty. All areINVALID_ARGUMENT. - Product catalog (mock slugs: the real Marketplace slugs are undocumented):
NEBIUS_MOCKER_APPLICATIONS_PRODUCTS, comma-separated, defaultnebius/soperator,nebius/nvidia-gpu-operator,nebius/nvidia-network-operator,nebius/kuberay,nebius/jupyterhub,nebius/mlflow. A slug is lowercase letters, digits,.,_,-and/. valuesandsetare input-only. They are stored for updates and never returned by Get, List or an operation (the proto marks them input-only), so Terraform keeps them from its own state.- Update changes
metadata.name,labels,valuesandset, bumpsresource_version, and moves the state toINSTALLING, thenDEPLOYED.cluster_id,product_slug,namespace,application_nameandparent_idare immutable: sending the stored value again (as Terraform does) is accepted, a different one isINVALID_ARGUMENT. Aresource_versionthat does not match isFAILED_PRECONDITION. - Cascade. Deleting an mk8s cluster deletes its releases (the cluster’s delete operation calls
peer.ClusterReleases). Listtakesparent_idandcluster_id, both required, and pages in creation order. AfilterisINVALID_ARGUMENT(“filtering is not implemented in NebiusMocker yet”) instead of being ignored.- No
GetByName. The provider’s call set is Create, Get, Update and Delete; releases are effectively unnamed. VmAppTemplateServiceis registered and every RPC answersUNIMPLEMENTED. Its authorization rules let any authenticated principal through so that callers seeUNIMPLEMENTED, notPERMISSION_DENIED, underenforce.
Authorization
applications.k8sReleases.{get,list,create,update,delete}, checked on the release or, for Create and List, on the
project. viewer reads releases and cannot write them (test/contract/applications_release_test.go,
test/cli/mk8s).
Not yet
- Installing anything: the Helm install of
product_sluginto the cluster (k3sbackend, see mk8s.md), the per-product chart map, andstatus.error_messagefor install failures. Listfilter.- The VM app template catalog (
VmAppTemplateService).
Configuration
| Env | Default | Description |
|---|---|---|
NEBIUS_MOCKER_APPLICATIONS_PRODUCTS |
nebius/soperator,nebius/nvidia-gpu-operator,nebius/nvidia-network-operator,nebius/kuberay,nebius/jupyterhub,nebius/mlflow |
Marketplace product slugs a release may install |
Terraform
test/terraform/applications runs the real provider: create, an empty plan, an in-place update of values, set and labels, another empty
plan, replacement on the immutable namespace, and destroy.
| Kind | Terraform type | Service | RPCs called | Tested |
|---|---|---|---|---|
| Resource | nebius_applications_v1alpha1_k8s_release |
nebius.applications.v1alpha1.K8sReleaseService |
Get, Create, Update, Delete + OperationService.Get | ✅ |
| Data source | nebius_applications_v1alpha1_k8s_release |
nebius.applications.v1alpha1.K8sReleaseService |
Get | ✅ |
CLI
test/cli/mk8s runs nebius applications v1alpha1 k8s-release create (with --cluster-id, --product-slug,
--namespace, --application-name), list (as a viewer) and delete against a cluster created with nebius mk8s.
API surface
nebius.applications.v1alpha1.K8sReleaseService
Endpoint: deployment-manager.mkt.api.nebius.cloud:443 · Proto: nebius/applications/v1alpha1/k8s_release_service.proto · used by Terraform
| RPC | Request | Response | TF |
|---|---|---|---|
Get |
GetK8sReleaseRequest |
K8sRelease |
✅ |
List |
ListK8sReleasesRequest |
ListK8sReleasesResponse |
|
Create |
CreateK8sReleaseRequest |
common.v1.Operation |
✅ |
Update |
UpdateK8sReleaseRequest |
common.v1.Operation |
✅ |
Delete |
DeleteK8sReleaseRequest |
common.v1.Operation |
✅ |
nebius.applications.v1alpha1.VmAppTemplateService
Endpoint: apps.msp.api.nebius.cloud:443 · Proto: nebius/applications/v1alpha1/vmapp_template_service.proto
| RPC | Request | Response | TF |
|---|---|---|---|
Get |
GetVmAppTemplateRequest |
VmAppTemplate |
|
List |
ListVmAppTemplatesRequest |
ListVmAppTemplatesResponse |