Kubectl Cheat Sheet – 15 Kubernetes Commands & Objects
Common Options
In kubectl you can specify optional flags for use with various commands.
alias – Set an alias for kubectl.
alias k=kubectl
echo 'alias k=kubectl' >>~/.bashrc
-o=json – Output format in JSON.
kubectl get pods -o=json
-o=yaml – Output ...
sanchitpandit.hashnode.dev10 min read