07-0.部署 worker 节点
kubernetes work 节点运行如下组件:
- docker
- kubelet
- kube-proxy
安装和配置 flanneld
安装依赖包
CentOS:
source /opt/k8s/bin/environment.sh
for node_ip in ${NODE_IPS[@]}
do
echo ">>> ${node_ip}"
ssh root@${node_ip} "yum install -y epel-release"
ssh root@${node_ip} "yum install -y conntrack iptables curl sysstat libseccomp"
done
Ubuntu:
source /opt/k8s/bin/environment.sh
for node_ip in ${NODE_IPS[@]}
do
echo ">>> ${node_ip}"
ssh root@${node_ip} "apt-get install -y conntrack iptables curl sysstat libseccomp"
done