kubernetes v1.18.2 二进制双栈 kube-proxy 部署
2021-03-10 12:27
标签:profile targe client 注释 sage rem reload clust flag kubernetes v1.18.2 二进制双栈 kube-proxy 部署 标签:profile targe client 注释 sage rem reload clust flag 原文地址:https://blog.51cto.com/juestnow/2493344# 生效环境变量 部署etcd 时已经配置好
source ./environment.sh
#创建kube-proxy 证书配置
cat
kube-proxy 二进制文件准备
# 进入二进制所在文件夹
cd ${HOST_PATH}/kubernetes/server/bin
scp -r kube-proxy 192.168.2.175:/apps/k8s/bin
scp -r kube-proxy 192.168.2.176:/apps/k8s/bin
scp -r kube-proxy 192.168.2.177:/apps/k8s/bin
scp -r kube-proxy 192.168.2.187:/apps/k8s/bin
scp -r kube-proxy 192.168.2.185:/apps/k8s/bin
kube-proxy 配置文件
# 创建 kube-proxy
# 192.168.2.175 配置
ssh 192.168.2.175
cat
创建 kube-proxy systemd文件
cat
kube-proxy 启动
# 刷新service
ssh 192.168.2.175 systemctl daemon-reload
ssh 192.168.2.176 systemctl daemon-reload
ssh 192.168.2.177 systemctl daemon-reload
ssh 192.168.2.185 systemctl daemon-reload
ssh 192.168.2.187 systemctl daemon-reload
# 设置开机启动
ssh 192.168.2.175 systemctl enable kube-proxy.service
ssh 192.168.2.176 systemctl enable kube-proxy.service
ssh 192.168.2.177 systemctl enable kube-proxy.service
ssh 192.168.2.185 systemctl enable kube-proxy.service
ssh 192.168.2.187 systemctl enable kube-proxy.service
# 启动 kube-proxy
ssh 192.168.2.175 systemctl start kube-proxy.service
ssh 192.168.2.176 systemctl start kube-proxy.service
ssh 192.168.2.177 systemctl start kube-proxy.service
ssh 192.168.2.185 systemctl start kube-proxy.service
ssh 192.168.2.187 systemctl start kube-proxy.service
# 查看启动状态
ssh 192.168.2.175 systemctl status kube-proxy.service
ssh 192.168.2.176 systemctl status kube-proxy.service
ssh 192.168.2.177 systemctl status kube-proxy.service
ssh 192.168.2.185 systemctl status kube-proxy.service
ssh 192.168.2.187 systemctl status kube-proxy.service
验证 kube-proxy
# ssh 任意节点
[root@k8s-master-1 conf]# ip a| grep kube-ipvs0
3: kube-ipvs0:
上一篇:初识webpack
下一篇:开始Vue.js,第一个应用程序
文章标题:kubernetes v1.18.2 二进制双栈 kube-proxy 部署
文章链接:http://soscw.com/index.php/essay/62753.html