Code Monkey home page Code Monkey logo

Comments (8)

WarpRat avatar WarpRat commented on May 16, 2024 6

If anybody else happens to come across this issue, we faced a similar problem. Adding the proper IAM role permissions fixed it, but not until rolling the masters. Kubelet only pulls the authorization token from ECR at initialization, so adding these permissions to your masters' IAM roles won't allow kubelet to get the proper token until the masters have been reinitialized.

from amazon-vpc-cni-k8s.

ghafran avatar ghafran commented on May 16, 2024 1

Upgrading EKS nodecluster to 1.29.0-20240129 fixed the issue

from amazon-vpc-cni-k8s.

liwenwu-amazon avatar liwenwu-amazon commented on May 16, 2024

@smcquay can you check if your instance role have permission to pull image from ECR registry?
for example,

        {
            "Sid": "kopsK8sECR",
            "Effect": "Allow",
            "Action": [
                "ecr:GetAuthorizationToken",
                "ecr:BatchCheckLayerAvailability",
                "ecr:GetDownloadUrlForLayer",
                "ecr:GetRepositoryPolicy",
                "ecr:DescribeRepositories",
                "ecr:ListImages",
                "ecr:BatchGetImage"
            ],
            "Resource": [
                "*"
            ]
        },

from amazon-vpc-cni-k8s.

smcquay avatar smcquay commented on May 16, 2024

@liwenwu-amazon I missed that the first time around, but I've added those permissions (and also the L-IPAM perms while I was at it), but I still cannot seem to hit that url successfully.

I'm trying from us-west-1, but I get the same error when I change to point at a registry in that region, but I get the same Not Authorized results.

Any ideas?

from amazon-vpc-cni-k8s.

liwenwu-amazon avatar liwenwu-amazon commented on May 16, 2024

@smcquay , can I take a look at your instance IAM policy? You can send them to me directly at [email protected].
Also, the CNI plugin docker image is ONLY available at us-west-2 region.

from amazon-vpc-cni-k8s.

smcquay avatar smcquay commented on May 16, 2024

Information sent; thanks for looking into this!

from amazon-vpc-cni-k8s.

smcquay avatar smcquay commented on May 16, 2024

I was able to build the image myself and push it to my own container registry. I'm going to call this resolved.

from amazon-vpc-cni-k8s.

KK7NZY avatar KK7NZY commented on May 16, 2024

Ran into the same issue. I was able to get around it by doing the same thing @smcquay did.

from amazon-vpc-cni-k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.