alias k=kubectl
alias kp='kubectl get pods'
alias ks='kubectl get services'
alias kn='kubectl get ns'
function kexec() {
kubectl exec $1 -it -- /bin/sh
}
function kdelete() {
kubectl delete pod $1 --grace-period=0 --force
}
function krun() {
kubectl run $1 --image=$2 --restart=Never --dry-run -o yaml
}
function kapply() {
kubectl apply -f $1
}
alias kp='kubectl get pods'
alias ks='kubectl get services'
alias kn='kubectl get ns'
function kexec() {
kubectl exec $1 -it -- /bin/sh
}
function kdelete() {
kubectl delete pod $1 --grace-period=0 --force
}
function krun() {
kubectl run $1 --image=$2 --restart=Never --dry-run -o yaml
}
function kapply() {
kubectl apply -f $1
}
No comments:
Post a Comment