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

Short-circut sandbox image fetching #1090

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

vpineda1996
Copy link
Contributor

@vpineda1996 vpineda1996 commented Nov 9, 2022

Issue #, if available:
N/A
Description of changes:
The commit short-circuits fetching the sandbox image from ECR whenever its present locally. This is needed to support edge device stability during disconnection.

In order to bring the kubelet back online, systemd will create a sandbox in which the kubelet will run. If connection to the AWS region is down, we won't be able to reach ECR and pulling will fail.

We don't need to call ECR to pull the image if its available locally. So this commit adds that short-circuiting.

Testing Done

  • Built the AMI
  • Tested locally with a worker node when it is disconnect and connected using a cluster running k8s 1.21.
  • Ran conformance tests

@cartermckinnon
Copy link
Member

@bwagner5 you got thoughts on this one?

@bwagner5
Copy link
Contributor

This LGTM to improve stability for edge deployments.

files/pull-image.sh Outdated Show resolved Hide resolved
@cartermckinnon cartermckinnon merged commit 6676005 into awslabs:master Nov 22, 2022
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

Successfully merging this pull request may close these issues.

3 participants