From 02e3bcbb321bc6a516ab2929808b21fb1b1ba3c2 Mon Sep 17 00:00:00 2001 From: chenyb4 Date: Tue, 12 Jun 2018 07:59:27 +0800 Subject: [PATCH] Fix kubectl_install doc centos default not install bash-completion (#8888) Signed-off-by: Yuanbin.Chen --- content/en/docs/tasks/tools/install-kubectl.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/en/docs/tasks/tools/install-kubectl.md b/content/en/docs/tasks/tools/install-kubectl.md index bb5ad89868..c0e5eb3704 100644 --- a/content/en/docs/tasks/tools/install-kubectl.md +++ b/content/en/docs/tasks/tools/install-kubectl.md @@ -217,6 +217,11 @@ The completion script itself is generated by kubectl, so you typically just need Common examples are provided here. For more details, consult `kubectl completion -h`. ### On Linux, using bash +On CentOS Linux, you may need to install the bash-completion package which is not installed by default. + +```shell +yum install bash-completion -y +``` To add kubectl autocompletion to your current shell, run `source <(kubectl completion bash)`.