> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# nebius mk8s cluster create

## Name

`nebius mk8s cluster create`

Creates a new mk8s cluster.

## Synopsis

```
nebius mk8s cluster create
  --control-plane-audit-logs
  --control-plane-authentication-oidc
  --control-plane-endpoints-public-endpoint
  --control-plane-endpoints-public-endpoint-allowed-cidrs
  --control-plane-etcd-cluster-size
  --control-plane-karpenter
  --control-plane-subnet-id
  --control-plane-version
  --kube-network-service-cidrs
  --labels
  --name
  --parent-id [required]
  --resource-version
  --async
  -i, --interactive
```

## Examples

**Create a Kubernetes cluster**

```
nebius mk8s cluster create \
  --name <cluster_name> \
  --labels <key1=value1,key2=value2,...> \
  --control-plane-endpoints-public-endpoint=<true|false> \
  --control-plane-endpoints-public-endpoint-allowed-cidrs <allowed_CIDR_blocks> \
  --control-plane-version 1.35 \
  --control-plane-subnet-id <subnet_ID> \
  --control-plane-etcd-cluster-size <number_of_etcd_stores>
```

## Options

`--control-plane-audit-logs` (bool)

Specify configuration of the pushing k8s audit logs into service logs and show it in the UI.\

By default cluster will be created without it.

`--control-plane-authentication-oidc` (json)

Configures OIDC providers for Kubernetes user authentication.

(structure)

**claim\_mappings** -> (structure)*\[required]*

Maps token claims to Kubernetes user attributes.

**groups** -> (structure)

Maps token claims to Kubernetes groups. Omission disables group mapping.

**claim** -> (string)

Names the token claim to map.

**expression** -> (string)

Maps token claims with a CEL expression.

**prefix** -> (string)*\[optional]*

Omission and an empty value disable prefixing for claims. Expressions require omission, including for an empty value.

**username** -> (structure)*\[required]*

Maps token claims to the Kubernetes username.

**claim** -> (string)

Names the token claim to map.

**expression** -> (string)

Maps token claims with a CEL expression.

**prefix** -> (string)*\[optional]*

Omission and an empty value disable prefixing for claims. Expressions require omission, including for an empty value.

**claim\_validation\_rules** -> (structure)

Validates token claims before Kubernetes authenticates the user.

**claim** -> (string)

Names the token claim that must match required\_value exactly.

**expression** -> (string)

Validates token claims with CEL. The expression must evaluate to true.

**message** -> (string)

Describes a failed CEL validation.

**required\_value** -> (string)

An omitted value matches an empty string, following upstream behavior.

**issuer** -> (structure)*\[required]*

Defines the issuer for accepted tokens.

**audiences** -> (string)

Lists the token audiences that this issuer accepts, for example, `["kubernetes", "dashboard"]`.

**certificate\_authority** -> (string)

PEM CA bundle for discovery and JWKS. Omission uses system trust.

**discovery\_url** -> (string)

Overrides the OpenID discovery URL. An empty value uses the issuer's standard discovery URL.

**url** -> (string)

Identifies the issuer and must match the token `iss` claim.

**name** -> (string)

Identifies this provider within the cluster configuration.

**user\_validation\_rules** -> (structure)

Validates the mapped Kubernetes user information.

**expression** -> (string)

Validates the mapped Kubernetes user information with CEL.

**message** -> (string)

Describes a failed CEL validation.

JSON Schema:

```json theme={null}
[{                            
  "claim_mappings": {
    "groups": {        
      "claim": "",     
      "expression": "",
      "prefix": ""     
    },
    "username": {      
      "claim": "",     
      "expression": "",
      "prefix": ""     
    }
  },
  "claim_validation_rules": [{
    "claim": "",              
    "expression": "",         
    "message": "",            
    "required_value": ""      
  }],
  "issuer": {                   
    "audiences": [""],          
    "certificate_authority": "",
    "discovery_url": "",        
    "url": ""                   
  },
  "name": "",                 
  "user_validation_rules": [{
    "expression": "",        
    "message": ""            
  }]
}]
```

`--control-plane-endpoints-public-endpoint` (bool)

Public endpoint specification. When set, a public endpoint is created.

`--control-plane-endpoints-public-endpoint-allowed-cidrs` (string array)

List of CIDR blocks from which access to public endpoint is allowed.\

If field is not set, or list is empty, it means that access is not restricted at all.\

You can specify a maximum of 100 CIDRs.

`--control-plane-etcd-cluster-size` (int64)

Number of instances in etcd cluster.\

3 by default.\

Control plane with `etcd_cluster_size: 3` called "Highly Available" ("HA"), because it's Kubernetes API\

will be available despite a failure of one control plane instance.

`--control-plane-karpenter` (bool)

Enables installation of the Karpenter inside a cluster.\

Karpenter will be installed as a helm chart inside cluster\

so it requires creation of at least one CPU public node group.\


Please note that there is no feature parity between Karpenter node pools and\

public node groups.\

By default cluster will be created without it.

`--control-plane-subnet-id` (string)

Nebius VPC Subnet ID where control plane instances will be located.\

If it isn't specified default network of the parent container will be used.\

Also will be default NodeGroup subnet.

`--control-plane-version` (string)

Desired Kubernetes version of the cluster. May be lower than the actual cluster version\

if the desired version is no longer supported and the cluster has been automatically updated.\

For now only acceptable format is `<major>.<minor>` like "1.31".\

Option for patch version update will be added later.

`--kube-network-service-cidrs` (string array)

CIDR blocks for Service ClusterIP allocation.\

For now, only one value is supported.\

Must be a valid CIDR block or prefix length.\

In case of prefix length, certain CIDR is auto allocated.\

Specified CIDR blocks will be reserved in Cluster.spec.control\_plane.subnet\_id to prevent address duplication.\

Allowed prefix length is from "/12" to "/28".\

Empty value treated as \["/16"].

`--labels` (string->string)

Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--parent-id` (string)* \[required]*

Identifier of the parent resource to which the resource belongs.

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

`-i, --interactive` (bool)

If set, suggests to insert field values in interactive mode.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {              
>   "metadata": {                // [required]
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "spec": {            // Specification of a cluster to create. If spec is not specified cluster will be created within default network of the specified parent
>                        // project.
>     "control_plane": {            // [required]
>       "audit_logs": { // [meaningful_empty_value]
>                       // Specify configuration of the pushing k8s audit logs into service logs and show it in the UI.
>                       // By default cluster will be created without it.
>       },
>       "authentication": { // Configures customer JWT authentication. Requires Kubernetes 1.34 and a compatible control-plane infra version.
>         "oidc": [{                     // Configures OIDC providers for Kubernetes user authentication.
>           "claim_mappings": { // [required]
>                               // Maps token claims to Kubernetes user attributes.
>             "groups": {             // Maps token claims to Kubernetes groups. Omission disables group mapping.
>               "claim": string,      // Names the token claim to map.
>               "expression": string, // Maps token claims with a CEL expression.
>               "prefix": string      // [optional]
>                                     // Omission and an empty value disable prefixing for claims. Expressions require omission, including for an empty value.
>             },
>             "username": {           // [required]
>                                     // Maps token claims to the Kubernetes username.
>               "claim": string,      // Names the token claim to map.
>               "expression": string, // Maps token claims with a CEL expression.
>               "prefix": string      // [optional]
>                                     // Omission and an empty value disable prefixing for claims. Expressions require omission, including for an empty value.
>             }
>           },
>           "claim_validation_rules": [{ // Validates token claims before Kubernetes authenticates the user.
>             "claim": string,           // Names the token claim that must match required_value exactly.
>             "expression": string,      // Validates token claims with CEL. The expression must evaluate to true.
>             "message": string,         // Describes a failed CEL validation.
>             "required_value": string   // An omitted value matches an empty string, following upstream behavior.
>           }],
>           "issuer": {                        // [required]
>                                              // Defines the issuer for accepted tokens.
>             "audiences": [string],           // Lists the token audiences that this issuer accepts, for example, `["kubernetes", "dashboard"]`.
>             "certificate_authority": string, // PEM CA bundle for discovery and JWKS. Omission uses system trust.
>             "discovery_url": string,         // Overrides the OpenID discovery URL. An empty value uses the issuer's standard discovery URL.
>             "url": string                    // Identifies the issuer and must match the token `iss` claim.
>           },
>           "name": string,              // Identifies this provider within the cluster configuration.
>           "user_validation_rules": [{ // Validates the mapped Kubernetes user information.
>             "expression": string,     // Validates the mapped Kubernetes user information with CEL.
>             "message": string         // Describes a failed CEL validation.
>           }]
>         }]
>       },
>       "endpoints": {         // Specification of endpoints of cluster control plane.
>         "public_endpoint": {         // [meaningful_empty_value]
>                                      // Public endpoint specification. When set, a public endpoint is created.
>           "allowed_cidrs": [string]  // List of CIDR blocks from which access to public endpoint is allowed.
>                                      // If field is not set, or list is empty, it means that access is not restricted at all.
>                                      // You can specify a maximum of 100 CIDRs.
>         }
>       },
>       "etcd_cluster_size": int64, // Number of instances in etcd cluster.
>                                   // 3 by default.
>                                   // Control plane with `etcd_cluster_size: 3` called "Highly Available" ("HA"), because it's Kubernetes API
>                                   // will be available despite a failure of one control plane instance.
>       "karpenter": { // [meaningful_empty_value]
>                      // Enables installation of the Karpenter inside a cluster.
>                      // Karpenter will be installed as a helm chart inside cluster
>                      // so it requires creation of at least one CPU public node group.
>                      // 
>                      // Please note that there is no feature parity between Karpenter node pools and
>                      // public node groups.
>                      // By default cluster will be created without it.
>       },
>       "subnet_id": string,        // [immutable] [non_empty_default]
>                                   // Nebius VPC Subnet ID where control plane instances will be located.
>                                   // If it isn't specified default network of the parent container will be used.
>                                   // Also will be default NodeGroup subnet.
>       "version": string           // Desired Kubernetes version of the cluster. May be lower than the actual cluster version
>                                   // if the desired version is no longer supported and the cluster has been automatically updated.
>                                   // For now only acceptable format is `<major>.<minor>` like "1.31".
>                                   // Option for patch version update will be added later.
>     },
>     "kube_network": {            // Defines kubernetes network configuration, like IP allocation.
>       "service_cidrs": [string]  // [immutable]
>                                  // CIDR blocks for Service ClusterIP allocation.
>                                  // For now, only one value is supported.
>                                  // Must be a valid CIDR block or prefix length.
>                                  // In case of prefix length, certain CIDR is auto allocated.
>                                  // Specified CIDR blocks will be reserved in Cluster.spec.control_plane.subnet_id to prevent address duplication.
>                                  // Allowed prefix length is from "/12" to "/28".
>                                  // Empty value treated as ["/16"].
>     }
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius mk8s cluster create '
> {              
>   "metadata": {           
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "spec": {           
>     "control_plane": {       
>       "audit_logs": {
>       },
>       "authentication": {
>         "oidc": [{                    
>           "claim_mappings": {
>             "groups": {        
>               "claim": "",     
>               "expression": "",
>               "prefix": ""     
>             },
>             "username": {      
>               "claim": "",     
>               "expression": "",
>               "prefix": ""     
>             }
>           },
>           "claim_validation_rules": [{
>             "claim": "",              
>             "expression": "",         
>             "message": "",            
>             "required_value": ""      
>           }],
>           "issuer": {                   
>             "audiences": [""],          
>             "certificate_authority": "",
>             "discovery_url": "",        
>             "url": ""                   
>           },
>           "name": "",                 
>           "user_validation_rules": [{
>             "expression": "",        
>             "message": ""            
>           }]
>         }]
>       },
>       "endpoints": {        
>         "public_endpoint": {    
>           "allowed_cidrs": [""] 
>         }
>       },
>       "etcd_cluster_size": 0,
>       "karpenter": {
>       },
>       "subnet_id": "",       
>       "version": ""          
>     },
>     "kube_network": {       
>       "service_cidrs": [""] 
>     }
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
