amazon-s3 - Amazon S3 的端点有哪些?

标签 amazon-s3 kubernetes istio

我创建了一个“启用 Istio”的 Kubernetes 集群,我的容器默认为“are unable to access URLs outside of the cluster ”(Istio v1.0.2)。这很好,符合我的安全要求:

By default, Istio-enabled services are unable to access URLs outside of the cluster because the pod uses iptables to transparently redirect all outbound traffic to the sidecar proxy...

现在我正在尝试创建一个 Istio Service Entry 允许我的容器请求位于 Istio 服务网格之外的 s3 存储桶

据我所知,Amazon S3 没有特定的“主机”或明确定义的 IP 地址范围。我怎样才能做到这一点?我需要使用什么协议(protocol)?

apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: enable-access-to-s3-buckets
spec:
  hosts:
  - ????????
  ports:
  - number: ???????
    name: ??????
    protocol: ??????
  resolution: ?????

注意:Istio v1.2将默认出站流量策略更改为 ALLOW_ANY

最佳答案

在这里您可以获得 s3 终止点的列表,这可能会有所帮助: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

另一种解决方案是在 K8S 集群的同一 VPC 内创建 s3 端点,并使用该名称通过私有(private) IP 规则限制访问。请参阅https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-s3.html有关它的详细文档。

关于amazon-s3 - Amazon S3 的端点有哪些?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52969899/

相关文章:

amazon-s3 - DynamoDB 是否适合作为 S3 元数据索引?

amazon-web-services - AWS : instance metadata for iam is not found

amazon-web-services - 安装在 EC2 服务器中时适用的 Amazon S3 Bucket 数据传输费用?

docker - 类型 "bind": bind mount source path does not exist:/home/jenkins/. docker (Istio) 的挂载配置无效

java - 使用java将Parquet文件从Lambda保存到S3

kubernetes - 在 kubeadm 集群上配置 PodSecurityPolicy

kubernetes - 我可以在给定图表的所有版本上运行 Helm 命令吗?

kubernetes - 如何解决错误 : epmd error for host nxdomain (non-existing domain)?

angular - 使用 Ingress Gateway 子文件夹 React 应用程序 + Angular 应用程序时出现问题

networking - Istio 虚拟服务匹配 uri 和 cookie 不起作用