Complete the command to create a new namespace named 'dev'.
kubectl create namespace [1]The command kubectl create namespace dev creates a new namespace called 'dev'.
Complete the command to list all namespaces in the cluster.
kubectl get [1]The command kubectl get namespaces lists all namespaces in the Kubernetes cluster.
Fix the error in the command to delete the namespace named 'test'.
kubectl delete [1] testTo delete a namespace, use kubectl delete namespace test. Using 'namespace' is correct.
Fill both blanks to create a namespace using a YAML file named 'ns.yaml'.
kubectl [1] -f [2]
The command kubectl create -f ns.yaml creates resources defined in the YAML file, including namespaces.
Fill all three blanks to define a namespace named 'staging' in a YAML manifest.
apiVersion: v1 kind: [1] metadata: name: [2] labels: environment: [3]
This YAML defines a namespace resource named 'staging' with a label 'environment: staging-env'.