CKA Exam Command Shortcuts
Run these commands in your shell to make them available (or put in .bashrc)…
Command Example | Description | |
---|---|---|
alias k=kubectl |
- | Create an alias for kubectl |
export do="--dry-run=client -o yaml" |
k create deploy nginx --image=nginx $do |
Generate YAML for deployment without applying it |
export now="--force --grace-period 0" |
k delete pod x $now |
Force delete a pod immediately |
These shortcuts can help speed up command execution during the CKA exam.