-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
GCE: provide an option to disable docker's live-restore #55260
Conversation
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.
The gci scripts are used by Ubuntu so we can update the release note to include Ubuntu as well.
# Enable GCE Alpha features. | ||
if [[ -n "${GCE_ALPHA_FEATURES:-}" ]]; then | ||
PROVIDER_VARS="${PROVIDER_VARS:-} GCE_ALPHA_FEATURES" | ||
fi | ||
|
||
# Disable Docker live-restore. | ||
if [[ -n "${DISABLE_DOCKER_LIVE_RESTORE:-}" ]]; then |
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.
How about checking whether it's true
/false
so that DISABLE_DOCKER_LIVE_RESTORE=false
will work as expected?
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.
Done. See the latest commit.
/test pull-kubernetes-unit |
LGTM. We can update the release note to include Ubuntu. |
cc0bf82
to
df125fc
Compare
df125fc
to
1842922
Compare
Sqaushed and done. |
/test pull-kubernetes-unit |
/lgtm |
Is there a way we can add a test that shows the env var works as expected ? Maybe tweak the existing e2e tests, so they set the flag, and then fail as expected ? |
I'm not aware of a way to set this env variable without creating a new job for a cluster e2e test. There is also no existing COS/ubuntu, docker-specific test that we can reuse. I think adding a new test job might be an overkill, so I added a log line to dump the docker configuration in the kubelet log for manual checkup. If a test is still preferred, we could set up a separate job. |
BTW, we would also need a test job with COS m61 image to actually confirm that this working as intended. I assume the GKE jobs would have that. |
The GKE jobs currently use m60, we'd need to update the image mapping with m61. |
/test pull-kubernetes-unit |
Yeah, I guess it would require a dedicated testjob, that could set the ENV and also specify the COS version. That does some overkill. Thanks for looking into it ... lgtm |
Thanks for checking! These jobs should be used to qualify the images and track the images we roll out on GKE. |
/lgtm |
/test pull-kubernetes-unit |
1 similar comment
/test pull-kubernetes-unit |
/approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, yguo0905, yujuhong Associated issue requirement bypassed by: yujuhong The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 54177, 55203, 55120, 55275, 55260). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
Provide an option to disable docker's live-restore for COS/ubuntu images on GCE. Some newer COS images have live-restore enabled by default. This allows users to override the option if needed.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: