Prepare your environment
Install the CLIs and tools
In this guide, you will use the terminal in your environment, e.g. 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:- 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.
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
-
Your cluster’s control plane and nodes will use private IP addresses from the default subnet. Get its ID:
-
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 tonebius mk8s cluster create. -
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 asuser(as specified inNODE_USERNAME).
Connect to the cluster
-
Create a kubeconfig file containing the cluster details for kubectl:
-
Check that the cluster is accessible. For example:
-
Get addresses of the control plane and cluster services:
-
Get the list of pods:
-
Get addresses of the control plane and cluster services: