kubectl 自动补全

2022/10/18 Kubernetes

kubectl 自动补全

# k8s 命令自动补全 
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc

Search

    Table of Contents