File tree Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Original file line number Diff line number Diff line change 11# shellcheck shell=bash
22about-alias ' kubectl aliases'
33
4- function _set_pkg_aliases() {
5- if _command_exists kubectl; then
6- alias kc=' kubectl'
7- alias kcgp=' kubectl get pods'
8- alias kcgd=' kubectl get deployments'
9- alias kcgn=' kubectl get nodes'
10- alias kcdp=' kubectl describe pod'
11- alias kcdd=' kubectl describe deployment'
12- alias kcdn=' kubectl describe node'
13- alias kcgpan=' kubectl get pods --all-namespaces'
14- alias kcgdan=' kubectl get deployments --all-namespaces'
15- # launches a disposable netshoot pod in the k8s cluster
16- alias kcnetshoot=' kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
17- fi
18- }
19-
20- _set_pkg_aliases
4+ if _command_exists kubectl; then
5+ alias kc=' kubectl'
6+ alias kcgp=' kubectl get pods'
7+ alias kcgd=' kubectl get deployments'
8+ alias kcgn=' kubectl get nodes'
9+ alias kcdp=' kubectl describe pod'
10+ alias kcdd=' kubectl describe deployment'
11+ alias kcdn=' kubectl describe node'
12+ alias kcgpan=' kubectl get pods --all-namespaces'
13+ alias kcgdan=' kubectl get deployments --all-namespaces'
14+ # launches a disposable netshoot pod in the k8s cluster
15+ alias kcnetshoot=' kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
16+ fi
You can’t perform that action at this time.
0 commit comments