Skip to main content
With Kubernetes, you can efficiently manage and scale your containerized ML/AI applications and ensure they are portable and fault-tolerant. This guide will help you get started with Managed Service for Kubernetes, a service provided by Nebius AI Cloud. You will learn how to set up your environment for Managed Service for Kubernetes, create your first cluster for Kubernetes and a child node group, and connect to the cluster.

Prepare your environment

Install the CLIs and tools

In this guide, you will use the terminal in your environment, for example, on your local machine, to run commands that create and manage Nebius AI Cloud resources. The commands use certain command line interfaces (CLIs) and tools that you need to install first. The installation commands in copy-and-paste blocks are as follows:
These commands will install the following:
  • kubectl (how to install) is the Kubernetes command line interface.
  • jq (how to install) parses JSON outputs from the Nebius AI Cloud CLI and extracts resource IDs for other commands.
  • Nebius AI Cloud CLI (how to install) manages all Nebius AI Cloud resources.
The last command, nebius profile create, will guide you through several prompts. After you complete the prompts, your browser will open the Nebius AI Cloud web console sign-in screen. Sign in to the web console to complete the initialization. If you have access to multiple tenants, the CLI will prompt you to choose a tenant ID. After that, save your project ID in the CLI configuration: If the project ID has not been configured during the nebius profile create flow, get the project ID and save it in the CLI configuration:

Create a cluster and a node group

  1. Your cluster’s control plane and nodes will use private IP addresses from the default subnet. Get its ID:
  2. Create a cluster with a public endpoint allocated to its control plane, and get the cluster ID:
    The cluster’s control plane will run the Kubernetes version 1.32, which is the default version for Managed Kubernetes clusters. To explicitly specify another supported version, add the --control-plane-version <major.minor> parameter to nebius mk8s cluster create.
  3. Create a node group and add it to the cluster:
    The command creates a group of 2 nodes. Each node is a non-GPU (--template-resources-platform "cpu-e2") virtual machine that has 2 vCPUs, 8 of RAM, a 128 GiB Network SSD boot disk and a public IP address. You will be able to connect to both nodes via SSH as user (as specified in NODE_USERNAME).

Connect to the cluster

  1. Create a kubeconfig file containing the cluster details for kubectl:
  2. Check that the cluster is accessible. For example:
    • Get addresses of the control plane and cluster services:
    • Get the list of Pods:

What’s next