Interview Prep/Kubernetes/Rapid-Fire Commands

How do you extract a Secret's decoded value and list images in use?

IntermediateProductionRapid-Fire Commands
Answer
kubectl get secret db -n shop -o jsonpath='{.data.password}' | base64 -d
kubectl get pods -A -o jsonpath='{range .items[*]}{.spec.containers[*].image}{"\n"}{end}' | tr ' ' '\n' | sort | uniq -c | sort -rn
All Kubernetes questions

More on Rapid-Fire Commands