Amazon AWS Fargate Task静态IP地址 [英] Amazon AWS Fargate Task static IP adress

查看:261
本文介绍了Amazon AWS Fargate Task静态IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在AWS上进行迁移期间,我在AWS上创建了一个新集群,并使用Fargate方法部署了多个docker应用程序. 在每次任务定义更新期间,都会在服务内部启动新任务,并从AWS公共IP池中分配新的公共IP.

During migration on AWS, I created a new cluster on AWS and deployed several docker application with Fargate approach. During each update of task definition, new task is launched inside service and new public IP is assigned from AWS public IP pool

关于如何将静态IP地址附加到服务任务上,是否有任何解决方案或说明?

Is there any solution or instruction on how I can attach static IP adderes to the service tasks?

我在这里看到了类似的问题 如何将Elastic IP与Fargate关联容器?

I saw similar question here How do I associate an Elastic IP with a Fargate container?

但仍然找不到任何解决方案

but still can't find any solution

推荐答案

查看此答案

将应用程序负载平衡器添加到您的Fargate服务. 服务自动缩放是更好的方法.

add application load balancer to your fargate service. service auto scaling is bettor approach to do this.

这篇关于Amazon AWS Fargate Task静态IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆