惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - 一望无际的南

wps转PDF-解决IPAD中PDF乱码问题 thinkserver TS250 虚拟化主机部署 小微企业的数据备份方案 mac idea 修改git账号 coder,不要做计算机,好吗? mac 同一应用多实例的切换 沙雕的git Plugin 一行命令完成linux对文件的授权 jira 8.x 性能调优 NODEJS npm build 中哪些乱码是什么? DT 还是IT 版本在运维的重要性 nginx 在linux下端口被禁用问题 bitbucket灾难恢复或者服务迁移指南 2020年服务器迁移 当,规范什么都不是 记阿里云SLB后配置Nginx反向代理百度地图API的坑 gradle介绍 Centos7 改名问题
混乱的docker swarm
一望无际的南 · 2020-02-21 · via 博客园 - 一望无际的南

序言

可能很多年以后,都不会有人记得Docker Swarm的技术。 在技术变迁这么快的时代,谁还记得asp,谁还在用cgi这些技术了呢? 谁有会记得什么塞班系统? 而以前的Docker Swarm的资产怎么办呢?

迁移到Mac后需要在油管上面录制一个视频供同事参考,于是看到这篇文章

如何用mac自带软件录屏且录制屏内屏外声音

前两天又遇到阿里云的docker swarm挂了

之前阿里云是提供docker swarm的方式对容器进行管理的,后来阿里云全面转到k8s的,docker swarm的支持就没有了。

出现问题是:某些应用通过界面部署后容器创建失败,没有任何报错原因,看到某个节点NODE machine离线了。

尝试了多次界面上面让其上限,设置使用扩容的方式新增节点都没有生效。最后只能手工登录机器查看,

docker info

之后发现该node的swarm 状态是error,

继续:docker swarm leave

再用

docker swarm join xxx

这种常规操作N次后都不行。

最后先初始化以后再离开再加入。

docker swarm init

docker swarm leave

docker swarm join

由于加入的老的docker swarm,在manager 上面

docker swarm join-token manager


获取token后再加入

最终解决的方案

到了2020年度,我们迁移Docker Swarm到了Rancher 1.6x。 嗯嗯,太low,怎么不用K8S? 适合的才是最好的,Rancher 1.6x基础架构,我使用了三台ECS完成所有应用的部署。 而K8S呢,三台才入门。而且K8S部署先要从负载开始,定义服务,再定义网络。 Rancher 1.6x + 自身的LBS 或者是Traefik 配置不要太简单。