Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fargate worker profile #27

Open
maxneuvians opened this issue Nov 10, 2020 · 3 comments
Open

Add fargate worker profile #27

maxneuvians opened this issue Nov 10, 2020 · 3 comments

Comments

@maxneuvians
Copy link
Contributor

We should look into using https://docs.aws.amazon.com/eks/latest/userguide/fargate-getting-started.html for the celery worker pods to make them more elastic.

@maxneuvians
Copy link
Contributor Author

Added this, but the fargate pods are not inheriting an IAM role. We may need an EKS service account in that case

@maxneuvians
Copy link
Contributor Author

We were able to add a fargate profile and service account so that the pods have all the access they need. However, because celery 3.26 uses boto and not boto3 it is not able to load the dynamic credentials that are injected into the container. boto3 has the ability to do this (https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html#assume-role-with-web-identity-provider) but boto does not. We will need to upgrade celery before we can use this dynamic scaling.

@maxneuvians
Copy link
Contributor Author

The other solution is to use IAM credentials from a static IAM user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant