k3s relase地址
https://github.com/rancher/k3s/releases/
环境准备:
selinux关闭 /usr/sbin/sestatus -v查看状态
vim /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
临时关闭
setenforce 0
防火墙关闭或者配置防火墙规则
systemctl stop firewalld
docker版本有限制,如果太低会出现
/etc/coredns/Corefile permission denied
docker旧版本卸载
sudo yum remove docker \
docker-common \
container-selinux \
docker-selinux \
docker-engine
卸载Docker后,/var/lib/docker/目录下会保留原Docker的镜像,网络,存储卷等文件. 如果需要全新安装Docker,需要删除/var/lib/docker/目录
rm -rf /var/lib/docker/
docker下载
curl -sSL https://get.daocloud.io/docker | sh
server端搭建
下载k3s运行的依赖包
wget https://github.com/rancher/k3s/releases/download/v0.10