Kubernetes之五----ansible部署K8S
一、基础集群环境搭建 架构图: 服务器清单 1、安装最小化Ubuntu系统 1、修改内核参数,修改网卡名称,将ens33改为eth0 root@ubuntu:vim /etc/default/grub GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" root@ubuntu:update-grub 2、修改系统的IP地址 root@node4:~# vim /etc/netplan/50-cloud-init.yaml network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no addresses: [192.168.7.110/24] gateway4: 192.168.7.2 nameservers: addresses: [192.168.7.2] 3、应用ip配置并重启测试: root@node4:~# netplan apply 4、修改apt源仓库 /etc/apt/sources.list :1804版本的Ubuntu,参考阿里云仓库:https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.53322f701347Pq deb http://mirrors.aliyun