Skip to content

Get all deployments under a namespace with kubectl

To get all deployments under a namespace with kubectl, just run the following command.

kubectl get deployments --namespace <namespace>
Advertisements

Example

$ kubectl get deployments --namespace airflow
NAME                READY   UP-TO-DATE   AVAILABLE   AGE
airflow-scheduler   1/1     1            1           2d3h
airflow-web         1/1     1            1           2d3h
See also  Not able to completely remove Kubernetes CustomResource using kubectl delete crd - How to fix?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.