Kubernetes 部署手册v1.12.2(12)

  1. 1. 07-0.部署 worker 节点
    1. 1.1. 安装和配置 flanneld
    2. 1.2. 安装依赖包

#Kubernetes部署手册v1.12.2(12)

07-0.部署 worker 节点

kubernetes work 节点运行如下组件:

  • docker
  • kubelet
  • kube-proxy

安装和配置 flanneld

参考 05-部署flannel网络.md

安装依赖包

CentOS:

1
2
3
4
5
6
7
source /opt/k8s/bin/environment.sh
for node_ip in ${NODE_IPS[@]}
do
echo ">>> ${node_ip}"
ssh k8s@${node_ip} "sudo yum install -y epel-release"
ssh k8s@${node_ip} "sudo yum install -y conntrack ipvsadm ipset jq iptables curl sysstat libseccomp && sudo /usr/sbin/modprobe ip_vs "
done