Kubernetes CKA sample exam question 45 with answer

Question
Get all Deployments, StatefulSets and DaemonSets in your cluster with maximum listable information (but it should be without headers). Also, place it in a file named all-deploy-ds-sts-info.txt

Answer
Get all details:

kubectl get deploy,sts,ds -A --no-headers -o wide
Redirect to a file:
kubectl get deploy,sts,ds -A --no-headers -o wide > all-deploy-ds-sts-info.txt
Verify:
cat all-deploy-ds-sts-info.txt