系统相关
首页 > 系统相关> > centos8安装kubernetes(sealos )

centos8安装kubernetes(sealos )

作者:互联网

yum install wget tar -y

# 下载并安装sealos, sealos是个golang的二进制工具,直接下载拷贝到bin目录即可, release页面也可下载
$ wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/latest/sealos && \
    chmod +x sealos && mv sealos /usr/bin 

# 下载离线资源包
$ wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/2fb10b1396f8c6674355fcc14a8cda7c-v1.20.0/kube1.20.0.tar.gz

# 安装一个三master的kubernetes集群
$ sealos init --passwd '123456' \
	--master 192.168.0.2  --master 192.168.0.3  --master 192.168.0.4  \
	--node 192.168.0.5 \
	--pkg-url /root/kube1.20.0.tar.gz \
	--version v1.20.0

kubectl自动补全

#1.安装bash-completion
yum install bash-completion -y

#2.执行bash_completion
source /usr/share/bash-completion/bash_completion

#3.重新加载kubectl completion
source <(kubectl completion bash)

标签:completion,kubernetes,--,192.168,master,sealos,bash,centos8
来源: https://blog.csdn.net/u010533742/article/details/119184522