Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML Services
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 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
    • Activating a Kubernetes Terraform provider
      • 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
      • Monitoring the cluster state Kubernetes
      • Deleting a Kubernetes cluster
    • Connecting external nodes to a cluster
    • Configuring WireGuard gateways to connect external nodes to a cluster
    • Configuring IPSec gateways to connect external nodes to a 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
Managing Kubernetes cluster access
© 2025 Direct Cursus Technology L.L.C.