1. 下载kube-flannel.yaml wget https://github.com/flannel-io/flannel/releases/download/v0.22.3/kube-flannel.yml 若无法下载,则使用下面的YAML内容: # kube-flannel.yml apiVersion: v1 kind: Namespace metadata: labels: k8s-app: flannel pod-security.kubernetes.io/enforce: privileged name: kube-flannel --- apiVersion: v1 kind: ServiceAccount metadata: labels: k8s-app: f...

[Read more...]

1. 设置系统主机名及hosts文件 记得将所有主机的主机名与IP的解析都写入/etc/hosts文件。 2. 更新系统&设置存储库 yum update -y yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 3. 相关设置 3.1. 禁用iptables和firewalld服务 systemctl stop firewalld systemctl disable firewalld systemctl sto...

[Read more...]

1. 设置系统主机名及hosts文件 编辑/etc/hosts文件,添加IP与主机名的映射。若有多个Node,则全部添加。 执行如下命令设置主机名。 hostnamectl set-hostname k8s-master 2. 更新系统&设置存储库 yum update -y yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 3. 相关设置 3.1. 禁用...

[Read more...]