A plugin for Oh My Fish that provides simple command aliases & env variables for
kubectl
.
omf install https://github.com/phe-lab/plugin-kubectl
omf reload
Name | Value |
---|---|
do | --dry-run=client -oyaml |
now | --grace-period=0 --force |
ow | -owide |
lrn | --load-restrictor LoadRestrictionsNone |
Abbreviation | Command |
---|---|
k | kubectl |
kg | kubectl get |
kc | kubectl create |
kd | kubectl describe |
ka | kubectl apply -f |
ke | kubectl exec -it |
kr | kubectl run $do --image |
krtmp | kubectl run tmp --rm -it --image |
kl | kubectl logs --tail 300 |
kxp | kubectl explain --recursive |
kk | kubectl kustomize |
Abbreviation | Command |
---|---|
kgp | kubectl get pod |
kgd | kubectl get deploy |
kgn | kubectl get node |
kge | kubectl get event |
wkgp | watch kubectl get pod |
Abbreviation | Command |
---|---|
dk | docker |
dke | docker exec -it |
dkps | docker ps --format 'table {{.ID}}\t{{.Names}}\t{{.Status}}' |
dkl | docker logs -f --tail 300 |
Abbreviation | Command | Link |
---|---|---|
dkx | dockerctx |
Install |
kx | kubectx |
Install |
kn | kubens |
Install |
omf remove kubectl
omf install https://github.com/phe-lab/plugin-kubectl
omf reload
omf remove kubectl
omf reload
MIT © Nguyen Huu Kim et al