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

Change Image Name on yaml manifest based on the version (vpc-cni v1.8.0) #1947

Closed
chiplux opened this issue Apr 1, 2022 · 5 comments
Closed
Labels

Comments

@chiplux
Copy link

chiplux commented Apr 1, 2022

What happened:

Image problem on version 1.8.0, https://github.com/aws/amazon-vpc-cni-k8s/blob/v1.8.0/config/master/aws-k8s-cni.yaml#L156
should change:

  1. "image": "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:latest" to "image": "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:v1.8.0"
  2. "image": "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:latest" to "image": "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.8.0"

Attach logs

  Normal   BackOff    15s (x5 over 87s)  kubelet            Back-off pulling image "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:latest"
  Warning  Failed     15s (x5 over 87s)  kubelet            Error: ImagePullBackOff
  Normal   Pulling    1s (x4 over 88s)   kubelet            Pulling image "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:latest"
  Warning  Failed     1s (x4 over 88s)   kubelet            Failed to pull image "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:latest": rpc error: code = Unknown desc = Error response from daemon: manifest for 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:latest not found: manifest unknown: Requested image not found
  Warning  Failed     1s (x4 over 88s)   kubelet            Error: ErrImagePull

What you expected to happen:
change the image name
How to reproduce it (as minimally and precisely as possible):
updating the vpc-cni-add-on based on this document, https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html#updating-vpc-cni-add-on,
when applying the manifest

kubectl apply -f aws-k8s-cni.yaml

Anything else we need to know?:

Environment:

@chiplux chiplux added the bug label Apr 1, 2022
@jayanthvn
Copy link
Contributor

@chiplux - you can find the correct manifest here - https://github.com/aws/amazon-vpc-cni-k8s/blob/v1.8.0/config/v1.8/aws-k8s-cni.yaml.

Is there any reason you would like config/master to be updated in release-1.8 branch?

@chiplux
Copy link
Author

chiplux commented Apr 1, 2022

Hi @jayanthvn , I just following the AWS document, https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html#updating-vpc-cni-add-on. Currently we use the vpc-cni v1.7.5 on the EKS kubernetes v1.21 and need to update to version 1.8.0. The document use this command

curl -o aws-k8s-cni.yaml https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/v1.10.1/config/master/aws-k8s-cni.yaml

to download the manifest, and I believe just need to change the v1.10.1 to v1.8.0 to get the version that I need.
Thanks.

@jayanthvn
Copy link
Contributor

@chiplux - Until v1.9.0, we used to have image tag "latest" in config/master and have version tag in config/ for instance "config/v1.8". But "latest" tag image never existed hence from 1.9.0 onwards we just have correct latest tag under config/master.

To find the correct release, you can check here - https://github.com/aws/amazon-vpc-cni-k8s/releases

From v1.9.0 onwards you can follow the step as above i.e, replacing v1.10.1 to v1.9.0 - https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/v1.10.1/config/master/aws-k8s-cni.yaml but not with v1.8.0. Sorry for the confusion.

@chiplux
Copy link
Author

chiplux commented Apr 12, 2022

@jayanthvn - Thank you for the information, I think we can close this issue.
Thank you.

@chiplux chiplux closed this as completed Apr 12, 2022
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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

No branches or pull requests

2 participants