Serve web static pages stored in S3 bucket from Eks cluster

0

I have an nginx ingress controller inside an Eks cluster. I would like this nginx to serve static web pages stored in S3 which is configured as a website What is the best way to do that?

  • I'm not sure I understand your question. If you've configured the S3 bucket as a website, why do you need nginx to serve it?

已提問 2 年前檢視次數 270 次
1 個回答
0

If you have created a static website on S3, you don't need a load balancer in front. Instead you can use Cloudfront as a CDN for your static website - https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-cloudfront-walkthrough.html

If you have single page applications on your static website build using frameworks such as React.js or Vue.js, and you need to make dynamic API calls to your APIs running on EKS, then you can use a Kubernetes Ingress Controller for those APIs. That can be NGINX or you can use the AWS Application Load Balancer for your APIs - https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html

profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南