I've been exploring the Kubernetes-Client/Java library and I can't figure out the API call to get all the deployments.
I'm looking for the K8-Client/Java API call for this command:
kubectl get deployments
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
appservice1 3 3 3 3 5d
appservice2 3 3 3 3 1d
appservice3 1 1 1 1 22d
More specifically, I'm interested in determining the number of desired & current pods for each deployment (like above).