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

Pod role example for accessing S3 bucket #162

Open
seethatgo opened this issue Sep 9, 2021 · 1 comment
Open

Pod role example for accessing S3 bucket #162

seethatgo opened this issue Sep 9, 2021 · 1 comment

Comments

@seethatgo
Copy link
Collaborator

Simple example where policy docs can be defined in repo and role created / applied for specified pods to access an S3 bucket. Similar to EFS example https://github.com/ManagedKube/kubernetes-ops/blob/main/terraform-modules/aws/eks-efs-csi-driver/main.tf#L45

@sekka1
Copy link
Collaborator

sekka1 commented Sep 10, 2021

Here is another example. I think one thing that isnt clear in the EFS one is how do you link it to the pod:

  • Your pod needs to have the k8s service account that is assigned this role
  • Your pod needs to have the annotations

https://github.com/ManagedKube/kubernetes-ops/blob/main/terraform-modules/aws/cluster-autoscaler/helm_values.yaml.tpl#L6-L10

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

2 participants