Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 935 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 935 Bytes

kubectl-aliases-list [Under Development]

This repository contains a complete list of commonly used kubectl commands and flags.

Kubectl autocomplete

BASH

source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.

You can also use a shorthand alias for kubectl that also works with completion:

alias k=kubectl
complete -F __start_kubectl k

ZSH

source <(kubectl completion zsh)  # setup autocomplete in zsh into the current shell
echo "[[ $commands[kubectl] ]] && source <(kubectl completion zsh)" >> ~/.zshrc # add autocomplete permanently to your zsh shell

Creating Objects

Create a resource from a file or from stdin. (JSON and YAML formats are accepted.)