安装kubectl

安装kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

chmod +x ./kubectl

mv ./kubectl /usr/local/bin/kubectl



# 家目录下配置 配置文件
cd
mkdir .kube
vim config



#在kubectl所在节点执行安装

yum install bash-completion -y


#kubectl支持命令自动补全,执行以下命令即可开启。

echo "source <(kubectl completion bash)" >> ~/.bashrc
.  ~/.bashrc


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

上一篇:Git 源码编译安装


下一篇:三种方法求公约数等