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?

feita há 2 anos270 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas