Kubectl

kubectl bash alias

Below kubectl shortcut will same some time in typing. ## add these alias in your .bashrc script. alias a='alias' alias k='kubectl ' alias ka='kubectl apply -f ' alias kg='kubectl get ' alias kgn='kubectl get nodes' alias kgnw='kubectl get nodes -o wide' alias kgnl='kubectl get nodes --show-labels' alias kgp='kubectl get pods' alias kgs='kubectl get svc' alias kgd='kubectl get deployments' alias kcf='kubectl create -f ' alias kd='kubectl delete ' alias kdf='kubectl delete -f ' alias kaf='kubectl apply -f ' alias kgpa='kubectl get pods --all-namespaces' Then you can use kgn it will display node status. »


Copyright © 2004, Software Groups