Skip to content

How do I get an OCIRepository working with an EKS Auto Mode Cluster? #5250

Answered by matheuscscp
gilberthl-mh asked this question in Q&A
Discussion options

You must be logged in to vote

It's your lucky day, I've been deploying several OCIRepositories in EKS auto mode :) Not that being auto mode or not makes a difference though.

You should assign an IAM role to the source-controller ServiceAccount, and not to your nodes.

Follow this guide:

https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html

And then you need a policy attached to the IAM role containing this statement:

{
    Sid: "AllowECRLogin",
    Effect: "Allow",
    Action: [
      "ecr:GetAuthorizationToken",
    ],
    Resource: "*",
  }

And this one:

      {
      Sid: "AllowECRPull",
      Effect: "Allow",
      Action: [
        "ecr:BatchGetImage",
        "ecr:BatchCheckL…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by matheuscscp
Comment options

You must be logged in to vote
1 reply
@matheuscscp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants