Creating a namespace in a Kubernetes cluster
To create a namespace in a Managed Service for Kubernetes cluster:
kubectl
Install kubectl
Run the following command:
kubectl create namespace <namespace name>
The namespace name must comply with RFC 1123
- The length can be from 2 to 63 characters.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter. The last character can't be a hyphen.
Note
It's not a good idea for the name to begin with kube-
: this prefix is used by system namespaces.