We recommend using the service account from the same project as the node group.
-
Make sure that you (if you are not your tenant’s owner), or the service account that you use on your behalf to manage clusters, are in a group that has the
adminrole within your tenant; for example, the defaultadminsgroup. You can check this in the Administration → IAM section of the web console. -
In your Managed Kubernetes cluster, create or modify a node group so that a service account from a group with at least the
viewerrole is added to it. A service account for node groups that your project came with,k8s-node-group-sa, is in the defaultviewersgroup. For example:- CLI
- Terraform
The commands below assume that the Nebius AI Cloud CLI is configured as described in its documentation, including adding the project ID in the CLI profile’sparent-id, and that the Managed Kubernetes cluster ID is stored in theNB_MK8S_CLUSTER_IDenvironment variable.For details aboutnebius mk8s node-group create, see the CLI reference.
For example, if your nginx image is atcr.eu-north1.nebius.cloud/<registry_ID>/nginx:mynginx(you can get the registry ID in the web console or with the nebius registry list) CLI command), here is how to refer to it in a deployment manifest: