diff --git a/README.md b/README.md index 34cc400..a282588 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +* [kubectl - BASH autocompletion](#kubectl-bash-autocompletion) * [Install k3s](#install-k3s) * [Configure upstream DNS-resolver](#upstream-dns-resolver) * [Change NodePort range](#nodeport-range) @@ -27,6 +28,16 @@ * [Running DaemonSets on `hostPort`](#running-daemonsets) * [Running StatefulSet with NFS storage](#running-statefulset-nfs) +# kubectl - BASH autocompletion +For current shell only: +``` +source <(kubectl completion bash) +``` +Persistent: +``` +echo "source <(kubectl completion bash)" >> ~/.bashrc +``` + # Install k3s https://k3s.io/: ```