Can i view "deployments" in the google cloud kubernetes console?

11/23/2018

I see "workloads" but are workloads the same as "deployments"?

I dont see any kubectl commands that can list ALL deployments just for describing a specific one.

-- red888
google-cloud-platform
google-kubernetes-engine
kubectl
kubernetes

2 Answers

11/23/2018

You can use following command to list deployments in kubernetes

kubectl get deployments
-- Prafull Ladha
Source: StackOverflow

11/23/2018

Yes, you should use the command:

kubectl get deployments

By default, you will only see that ones that are in the namespace default. If your deployments are in other namespaces you have to specify it:

kubectl get deployments -n your_namespace

If you want to see all the deployments from all namespaces, use the following command:

kubectl get deployments --all-namespaces

From your question, if what you want is to see all you have (not just deployments), use the following command:

kubectl get all --all-namespaces
-- pcampana
Source: StackOverflow