-
Notifications
You must be signed in to change notification settings - Fork 519
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
Fetch pause container image from ECR before starting kubelet
#382
Conversation
pod-infra-container-image
setting with new sandbox_image
setting935a70b
to
7825d00
Compare
Updating PR to implement image fetch from ECR before |
7825d00
to
536a315
Compare
Rebase develop |
a5d1d49
to
ef88499
Compare
This comment has been minimized.
This comment has been minimized.
ef88499
to
9bf6849
Compare
Fixed the issue above, I didn't include the repository path in addition to the pause container image name when building the ECR resolvable reference. |
9bf6849
to
4fd7c40
Compare
Adds new |
kubelet
4fd7c40
to
5b5c658
Compare
Updates |
db763f4
to
8041fb6
Compare
1st force push: Rebase develop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM!
8041fb6
to
10c3b20
Compare
Ran |
10c3b20
to
0fa9677
Compare
Addresses @bcressey 's comments.
|
0fa9677
to
055f512
Compare
055f512
to
8da97e3
Compare
Rebase develop. Resolves conflicts in |
12677ce
to
2ceacb9
Compare
Rebase develop, fixes conflict from #420 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Converts the containerd/config.toml to a template, and specifies `sandbox-image` option in containerd Renamed pod_infra_container_image to pause_container_image in `pluto`.
Adds new command line options for `host-ctr` to explicitly specify containerd socket, namespace, and optionally to only pull the container image `kubelet.service` will invoke host-ctr to fetch the pause container image before actually starting kubelet.
2ceacb9
to
241ed42
Compare
Addresses @bcressey 's comment. Testing again, things still work! |
Fixes a bug introduced in #382 where `ref` isn't set when pulling images from non-ECR registries
Issue #, if available: Fixes #351
Description of changes:
Adds new
sandbox_image
setting to set the pause container image forcontainerd/cri
plugin.Converts
/etc/containerd/config.toml
to a templateUpdated
pluto
to accommodate new naming changes with pause container setting.Updated
host-ctr
with new command line options:-pull-image-only
to just pull and unpack the specified image at-source
-containerd-sock
to specify thecontainerd socket
-namespace
to specify the containerd namespace.Adds new oneshot service called
pause-ctr-image-fetcher
to pull the pause container image from ECR ink8s.io
namespace.Testing:
Launched Thar instance and the
sandbox_image
option is set successfully:pause-ctr-image-fetcher
runs successfully:kubelet
also starts successfullyAnd I see the worker node registered and pods are scheduled on it successfully:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.