Before soloving any problem in CKAD exam, atleast do the following to save some time during the exam
Add the following line to you ~/.bashrc or ~/.zshrc and source it using source ~/.bashrc
.
alias k=kubectl
Add the following configuration to ~/.vimrc
set expandtab
set tabstop=2
set shiftwidth=2
Create few shorthands like:
export dr="--dry-run=client -o yaml" # for creating yaml file quickly
Delete a pod with 0 grace period:
k delete po <pod-name> --force --grace-period=0