{"repo":"ahmetb/kubectl-aliases","free":true,"listed":false,"github":"https://github.com/ahmetb/kubectl-aliases","clone":"git clone https://github.com/ahmetb/kubectl-aliases.git","description":"Programmatically generated handy kubectl aliases.","language":"Nu","stars":3705,"topics":["kubernetes","kubectl"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"kubectl-aliases This repository contains a script to generate hundreds of convenient shell aliases for kubectl, so you no longer need to spell out every single command and --flag over and over again. An example shell alias created from command/flags permutation looks like: alias ksysgdepwslowidel='kubectl --namespace=kube-system get deployment --watch --show-labels -o=wide -l' Confused? Read on. Examples Some of the 800 generated aliases are: See the full list. Installation You can directly download the .kubectl aliases file for bash/zsh or the .kubectl aliases.fish file for fish or the .kubectl aliases.nu file for Nushell and save it to your $HOME directory. Bash/Zsh Add the following to your .bashrc/.zshrc file: Recommendation: If you want to use GNU watch command instead of kubectl [...] --watch , run it like this: [ -f /.kubectl aliases ] && source \\ Recommendation: If you want to use GNU watch command instead of kubectl [...] --watch , run it like this: test -f /.kubectl aliases.fish && source \\ (cat /.kubectl aliases.fish sed -r 's/(kubectl. ) --watch/watch \\1/g' psub) Nushell Add the following to your /.config/nushell/config.nu file: Syntax explanation k : kubectl sys : --namespace kube-system commands: g : get d : describe rm : delete a : apply -f ak : apply -k k : kustomize ex : exec -i -t lo : logs -f resources: :warning: Please do not suggest new resources here, instead fork the project. po : pod dep : deployment ing : ingress svc : service cm : configmap sec : sec","default_branch":null,"files":null,"tree":[],"storefront":"/r/ahmetb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ahmetb/kubectl-aliases/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}