趁着春节体验了把Centos8,用着感觉和7没有太大变化,由于重新安装了Centos8,以前配置的k8s环境要重新配置了,在Centos8上配置docker和k8s遇到了不少坑,记录一下部署过程。
卸载podman,centos8默认安装了podman容器,它和docker有冲突需要卸载掉
yum delete podman
配置yum国内镜像
https://blog.youkuaiyun.com/wohendatou/article/details/102028632 参考
vim /etc/hostname 修改主机名k8sserver
关闭防火墙
systemctl disable firewalld
systemctl stop firewalld
关闭selinux
vim /etc/selinux/config 如下
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. O

本文详细记录了在Centos8环境下从零开始部署k8s单机集群的过程,包括解决podman与docker冲突、配置国内镜像、安装与配置docker及k8s组件、初始化集群、安装网络插件flannel等关键步骤。
最低0.47元/天 解锁文章
1427

被折叠的 条评论
为什么被折叠?



