Centos8 使用kubeadm部署k8s集群

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

趁着春节体验了把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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值