To get details about a specific namespace in Kubernetes, you can use the following command:
kubectl describe namespace <namespace-name>
Replace <namespace-name> with the name of the namespace you want to inspect.
Example
For example, to get details about a namespace called my-namespace, you would run:
kubectl describe namespace my-namespace
Output
This command will provide information such as:
- Name of the namespace
- Labels and annotations
- Resource quotas (if any)
- Status of the namespace
List All Namespaces
If you want to see a list of all namespaces along with their statuses, you can use:
kubectl get namespaces
If you have any more questions or need further assistance, feel free to ask!
