aws-fargate

AWS EKS with Fargate pod status pending due to PersistentVolumeClaim not found

那年仲夏 提交于 2020-12-15 07:44:20
问题 I have deployed EKS cluster with Fargate and alb-ingress-access using the following command: eksctl create cluster --name fargate-cluster --version 1.17 --region us-east-2 --fargate --alb-ingress-access A Fargate namespace has also been created. The application being deployed has four containers namely mysql, nginx, redis and web. The YAML files have been applied to the correct namespace. The issue I am having is that after applying the YAML files when I get the pods status I the following

AWS Fargate - Application load balancer(ELB) shows unhealthy targets with error “Health checks failed with these codes: [502]”

安稳与你 提交于 2020-12-15 04:39:25
问题 My app is running on port 3000 and web context is /app, so "http://host:3000/app/index.html" successfully returns index.html page running the app locally. Load balancer(public) listens on port 80 and forwards traffic to targets on port 3000. AWS Fargate - task definition has host and container port mapped to port 3000. - tasks are shown as RUNNING and status HEALTHY but eventually stops because ELB health checks fails. And i am able to see my app start up logs in cloud watch (tasks -> logs).

How to diagnose ECS Fargate task failing to start?

浪尽此生 提交于 2020-12-02 06:12:25
问题 I'm trying to launch/run a Dockerfile on AWS using their ECS service. I can run my docker image locally just fine, but it's failing on the Fargate launch type. I've uploaded my Docker image to ECR, and I've created a cluster/service/task from it. However, my cluster's task status simply reads "DEPROVISIONING (Task failed to start)", but it provides no logs or details of the output of my running image, so I have no idea what's wrong. How do I find more information and diagnose why ECS isn't

How to upload a file from a Docker container that runs on Fargate to S3 bucket?

旧城冷巷雨未停 提交于 2020-07-22 16:36:34
问题 I have a containerized project, the output files are written in the local container (and are deleted when the execution completes), the container runs on Fargate, I want to write a Python script that can call the model that runs on Fargate and get the output file and upload it to an S3 bucket, I'm very new to AWS and Docker, can someone send me an example or share some ideas about how to achieve this? I think the answer by @jbleduigou makes things complicated, now I can use command to copy