问题标签 [aws-app-mesh]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
59 浏览

amazon-eks - 缺少 Appmesh 网关和 NLB 的 X-Forwarded-For 标头

我正在使用通过 EKS 上的掌舵图部署的 AppMesh 控制器和网关。请求进入此路径:客户端 -> NLB -> AppMesh Gateway (Envoy) -> 虚拟服务 -> Flask App 容器

但是烧瓶上的请求中缺少X-Forwarded-For标头,并且远程地址返回 127.0.0.1

我为尝试解决问题而采取的步骤

  1. 在 NLB 上启用客户端 IP 保留

    https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#client-ip-preservation

  2. 在appmesh-gateway图表中将service.externalTrafficPolicy 设置为 Local

service.externalTrafficPolicy 设置为 Local 时,它保留客户端源 IP 集群

但问题仍然存在,有什么我可能会错过的想法吗?

0 投票
0 回答
72 浏览

amazon-eks - App Mesh 不会将 Envoy 代理注入 pod

我正在将应用网格集成到 EKS 上的微服务。我已经部署了微服务和应用网格控制器,并使用 sidecar 注入器 webhook 标记了我的工作负载命名空间,但是应用网格控制器引发了协调错误。

我已经为此工作了一段时间,但我还没有弄清楚为什么会出现错误。我将感谢任何成功实施这一点的人的帮助。

我遇到的错误。

0 投票
2 回答
131 浏览

java - 如何在 AWS APP Mesh 中部署的服务中获取远程/客户端 IP 地址或域

我们在 AWS App Mesh 中部署了多个微服务。所有服务都在 Spring Boot 中开发并部署在 AWS fargate 中。

我需要找到调用 API 的服务 IP/域。在 Java 中,这可以通过在收到请求时调用 getRemoteHost() 或 getRemoteAddr() 来完成。但目前,两个调用都返回 127.0.0.1。

可能是因为随服务一起部署的特使代理?如何在应用网格中部署的服务中获取调用方 IP?

0 投票
0 回答
57 浏览

amazon-web-services - AWS App Mesh 通常如何管理身份验证?

我一直在对AWS App Mesh 产品进行一些试验,虽然可观察性/流量转移的许多好处看起来很棒,但我不知道在这种模式下通常如何解决用户身份验证/授权问题。我看到的所有示例都只是使用负载均衡器作为 App Mesh 的入口,并且该产品中似乎没有受支持的“授权器”模式(至少不是以它存在的方式说,一个 API 网关)。

没有让应用网格中的每个微服务管理自己的身份验证/授权,这感觉就像是大量的冗余。

人们通常如何解决这一问题?

0 投票
0 回答
31 浏览

amazon-web-services - Assistance with Header based routing with AWS App Mesh

I am trying to look at using AWS App Mesh to do Header based routing between EKS clusters.

The idea would be to Have a General Services EKS cluster which then runs a microservice that can direct incoming traffic to any of the multiple EKS clusters depending on the http header.

For example, Traffic hits the General Services EKS cluster which runs a microservice that must route traffic to EKS cluster 1 if the header contains string "1" and if the header contains string "2" traffic must route to EKS Cluster 2.

Is something like this possible ? I have been doing some research and it seems that AWS App Mesh can allow for routing between EKS clusters, but I have not found any actual examples of using header based routing with AWS App Mesh.

0 投票
0 回答
37 浏览

amazon-web-services - 如何在 AWS 应用网格中设置 gRPC 无代理服务网格?

gRPC 添加了对 xDS 的支持,xDS在 GCP 的Traffic Director中用于构建无代理服务网格

如何在AWS App Mesh上设置类似的东西?

0 投票
0 回答
17 浏览

amazon-web-services - 没有 ELB 的 AWS AppMesh 负载平衡

我目前正在使用 ECS 测试 AWS AppMesh,并且想知道是否有默认的负载平衡算法用于在正在运行的任务之间分配请求。

例如我有:

  • 1 个服务实例
  • 2 个 serviceB 实例(serviceB1、serviceB2)
  • 服务A调用服务B

经过测试,我注意到所有请求都只转发到 serviceB1。serviceB2 正在运行,实际上我可以访问部署到它的服务。

0 投票
1 回答
24 浏览

amazon-web-services - 错误:无法下载“eks/appmesh-controller”

我正在尝试使用以下步骤安装 Appmesh:https ://www.eksworkshop.com/advanced/330_servicemesh_using_appmesh/appmesh_installation/install_appmesh/

但是,当我运行此命令时:

我收到此错误:

错误:无法下载“eks/appmesh-controller”

知道为什么它会失败吗?

谢谢!

0 投票
1 回答
38 浏览

amazon-web-services - 创建 App Mesh 网关路由时出错:BadRequestException: VirtualGatewayName must match ^[a-zA-Z0-9\-_]+$

我正在尝试使用 terraform 使用 ECS 实现 AppMesh。一旦我运行terraform apply,在创建过程中aws_appmesh_gateway_route,我收到一条错误消息:

错误:创建 App Mesh 网关路由时出错:BadRequestException:VirtualGatewayName 必须匹配 ^[a-zA-Z0-9-_]+$。

这是我正在使用的代码块:

0 投票
2 回答
42 浏览

amazon-web-services - AWS appMesh 与 Amazon ECS 有什么区别?

我对这两种技术都是新手,但很难理解这两种技术到底有什么不同,一个用例示例将非常有帮助。