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

Swapoff command does not get persisted #147

Merged
merged 1 commit into from
Jul 8, 2020
Merged

Swapoff command does not get persisted #147

merged 1 commit into from
Jul 8, 2020

Conversation

gianarb
Copy link
Contributor

@gianarb gianarb commented Jul 8, 2020

As you know kubelet requires swap to be off in order to run
successfully.

I was using the command swapoff -a but it does not work after a
reboot because the swap turns on again.

This PR fixes the issue by modifying the fstab file.

/assign @deitch
/kind bug

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 8, 2020
@gianarb gianarb requested a review from deitch July 8, 2020 09:05
@k8s-ci-robot k8s-ci-robot added the sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. label Jul 8, 2020
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 8, 2020
As you know kubelet requires swap to be off in order to run
successfully.

I was using the command `swapoff -a` but it does not work after a
reboot because the swap turns on again.

This PR fixes the issue modifying the fstab file.
@deitch
Copy link
Contributor

deitch commented Jul 8, 2020

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deitch, gianarb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deitch
Copy link
Contributor

deitch commented Jul 8, 2020

This definitely is good and should be done, but you might also want to check that it isn't enable in systemd

@gianarb
Copy link
Contributor Author

gianarb commented Jul 8, 2020

Technically I tried and for ubuntu this works fine

@gianarb gianarb merged commit ab54c49 into kubernetes-sigs:master Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants