Sobes.tech
Middle

How to raise a new namespace in Kubernetes?

sobes.tech AI

Answer from AI

To create a new namespace in Kubernetes, you can use the kubectl command with a manifest or directly through the CLI.

Example via CLI:

kubectl create namespace my-namespace

Or via a YAML manifest, for example namespace.yaml:

apiVersion: v1
kind: Namespace
metadata:
  name: my-namespace

Then apply:

kubectl apply -f namespace.yaml

After that, the namespace will be created and ready to use.