A namespace object is a Kubernetes API resource that represents a namespace and its lifecycle state. Namespaces organize resources and can be created directly with kubectl or declared in a YAML manifest. section 7.1.2
Create a namespace
Create one immediately with `kubectl create namespace kiada-test1`, or apply a manifest defining `apiVersion: v1`, `kind: Namespace`, and `metadata.name: kiada-test2`. Operators can include Namespace objects with application manifests for coordinated deployment. section 7.1.2
Listing 7.1 A YAML definition of a Namespace object
apiVersion: v1 kind: Namespace #1 metadata: name: kiada-test2 #2
Use the YAML definition to inspect the minimal structure of a Namespace object. section 7.1.2
Deleting a Namespace object deletes all objects in that namespace automatically. Deletion can remain in `Terminating` when an object cannot be removed, commonly because a custom controller has not processed its finalizer; inspect namespace status with `kubectl get ns NAME -o yaml`. section 7.1.5
