can someone please help me for command to output all resources/services sorted by namespace:
k get all --all-namespaces is command but default sort is pods, services, deamonset, deployment and replicaset.
kubectl get all -A
i should ask my question differently. the k get all -A groups by resource, but not namespace(as you can see in image).
I would like the same but grouped by namespace.
Add resource name and use -A. Ex:
kubectl get svc,pods,deploy -A
thanks @Tej_Singh_Rana is is still not grouping by namespace
@Kalpan, please share the answer if you find it. Thanks !