目錄
系統(tǒng)最低要求
基礎(chǔ)準(zhǔn)備工作--三臺(tái)主機(jī)
k8s集群安裝
在master上安裝 calico?網(wǎng)絡(luò)插件
K8s集群加入node工作節(jié)點(diǎn)
k8s集群搭建完成
更改contianerd 運(yùn)行時(shí)容器 為cri-docker
安裝helm
helm常用指令
徹底刪除calico網(wǎng)絡(luò)插件
POD命令
namespace命令
ERROR:
cir-docke報(bào)錯(cuò)
系統(tǒng)最低要求
內(nèi)存最少是4G? cpu個(gè)數(shù)最少兩個(gè)??
IP | 內(nèi)存 | CPU | 主機(jī)名 |
192.168.231.120 | 4 | 4 | K1?? |
192.168.231.121 | 4 | 4 | K2 |
192.168.231.122 | 4 | 4 | K3 |
基礎(chǔ)準(zhǔn)備工作--三臺(tái)主機(jī)
關(guān)閉防火墻
systemctl stop firewalled
關(guān)閉swap? ?永久關(guān)閉
vim? /etc/fstab
#/dev/mapper/centos-swap swap swap defaults 0 0
設(shè)置主機(jī)名稱? 主機(jī)配置文件hosts
hostnamectl set-hostname k1
hostnamectl set-hostname k2
hostnamectl set-hostname k3
vim /etc/hosts
192.168.241.129 k2
192.168.241.128 k1
192.168.241.130 k3
內(nèi)核參數(shù)設(shè)置
vim?/etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.ip_forward = 1
sysctl -p??
配置同步時(shí)間
yum install ntpdate
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
systemctl enable ntpdate
systemctl start ntpdate
systemctl status ntpdate
安裝containerd服務(wù)? # 如果選擇docker 作為運(yùn)行時(shí)容器則不裝。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-808764.html
yum install -y containerd.io-1.6.27
配置IPVS 功能
3臺(tái)機(jī)器操作文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-808764.html
yum install ipset ipvsadm -y
#配置內(nèi)核ipvs功能
vim /etc/sysconfig/modules/ipv
到了這里,關(guān)于cetos7搭建部署k8s 版本1.28的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!