Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for Kubernetes
  • Comparing 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
    • Activating a Kubernetes Terraform provider
    • Installing applications from Yandex Cloud Marketplace using Terraform
      • 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
      • Managing Kubernetes cluster access
      • Getting a list of available master configurations in a Kubernetes cluster
      • Kubernetes cluster state monitoring
      • Deleting a Kubernetes 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 January 26, 2026

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 update the Kubernetes cluster.

  2. Select the cluster from the list.

  3. Navigate to the Namespaces tab.

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

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

    • It may be up to 63 characters long.
    • It may contain only lowercase Latin letters, numbers, and hyphens.
    • Use a letter or number for the first and last characters.

    Note

    We do not recommend using the kube- prefix since it is reserved for system namespaces.

  6. Click Add.

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

Run this command:

kubectl create namespace <namespace_name>

The namespace name must comply with RFC 1123:

  • It may be up to 63 characters long.
  • It may contain only lowercase Latin letters, numbers, and hyphens.
  • Use a letter or number for the first and last characters.

Note

We do not recommend using the kube- prefix since it is reserved for system namespaces.

Was the article helpful?

Previous
Updating a Kubernetes cluster
Next
Managing Kubernetes cluster access
© 2026 Direct Cursus Technology L.L.C.