Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Kubernetes
  • Comparison with other Yandex Cloud services
  • Getting started
    • All guides
    • Connecting to a node over SSH
    • Connecting to a node via OS Login
    • Updating Kubernetes
    • Configuring autoscaling
      • Getting information about a Kubernetes cluster
      • Viewing operations with a Kubernetes cluster
      • Creating a Kubernetes cluster
      • Updating a Kubernetes cluster
      • Creating a namespace in a Kubernetes cluster
      • Monitoring cluster state Kubernetes
      • Deleting a Kubernetes cluster
    • Connecting external nodes to the cluster
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing a Kubernetes cluster
  3. Creating a namespace in a Kubernetes cluster

Creating a namespace in a Kubernetes cluster

Written by
Yandex Cloud
Updated at April 22, 2025

To create a namespace in a Managed Service for Kubernetes cluster:

Management console
kubectl CLI
  1. Open Managed Service for Kubernetes in the folder where you want to change the Kubernetes cluster.

  2. Select the appropriate cluster from the list.

  3. Go to the Namespaces tab.

  4. In the top-right corner, click Create.

  5. Specify a Name for the namespace. It must be compliant with RFC 1123:

    • Length: maximum 63 characters.
    • May contain only lowercase Latin letters, numbers, and hyphens.
    • Use a letter or number for the first and last characters.

    Note

    It's not a good idea for the name to begin with kube-: this prefix is used by system namespaces.

  6. Click Add.

Install kubect and configure it to work with the new cluster.

Run the following command:

kubectl create namespace <namespace_name>

The namespace name must comply with RFC 1123:

  • Length: maximum 63 characters.
  • May contain only lowercase Latin letters, numbers, and hyphens.
  • Use a letter or number for the first and last characters.

Note

It's not a good idea for the name to begin with kube-: this prefix is used by system namespaces.

Was the article helpful?

Previous
Updating a Kubernetes cluster
Next
Monitoring cluster state Kubernetes
© 2025 Direct Cursus Technology L.L.C.