本地虚拟搭建单master的k8s集群

按照顺序操作基本上没什么大问题:

创建虚拟机、配置网络、yum源、克隆快照: https://blog.csdn.net/m0_38130682/article/details/125831760?spm=1001.2014.3001.5506

解决wget问题: https://blog.csdn.net/m0_60028455/article/details/125933811

关闭SELinux和防火墙: https://blog.csdn.net/weixin_64334766/article/details/128577235

开放端口:https://blog.csdn.net/cuomodao4449/article/details/87074693

虚拟机搭建k8s: https://blog.csdn.net/zafBoot/article/details/126378513

K8S详细自学教程: https://gitee.com/yooome/golang/blob/main/k8s%E8%AF%A6%E7%BB%86%E6%95%99%E7%A8%8B-%E8%B0%83%E6%95%B4%E7%89%88/k8s%E8%AF%A6%E7%BB%86%E6%95%99%E7%A8%8B.md

常用命令:

vi /etc/sysconfig/network-scripts/ifcfg-en33
service network restart
vi /etc/hosts
vi /etc/hostname
reboot
firewall-cmd --query-port=6443/tcp

firewall-cmd --permanent --zone=public --add-port=6443/tcp

firewall-cmd --reload(端口开启之后需重新加载)

你可能感兴趣的:(运维,kubernetes,docker,linux)