Best shortcut for working on K8

zorrosam
Tue, 18 Jul 2023 21:32:54 +0000
Italian

Come vedete configurare questi shortcut quando si lavora su kube?

alias k=kubectl # will already be pre-configured
export do=‘–dry-run=client -o yaml’ # k create deploy nginx --image=nginx $do
export now=‘–force --grace-period 0’ # k delete pod x $now
alias kg=‘kubectl get’
alias kgp=‘kubectl get pods’
alias kgd=‘kubectl get deployment’
alias kgs=‘kubectl get service’
alias kga=‘kubectl get all’
alias kgaa=‘kubectl get all -A’
alias kd=‘kubectl delete’
alias kdp=‘kubectl delete pod --grace-period=0 --force’
alias kcf=‘kubectl create -f’
alias kaf=‘kubectl apply -f’
alias kgc=‘kubectl config get-contexts’

5 posts - 3 participants