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

Manifests: move zram to system-configuration #2937

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

jbtrystram
Copy link
Contributor

Kubernetes 1.28 now supports swap on zram as beta, so we need to ship this package in RHCOS.
Moving zram to a separate manifest that could be optionnaly enabled for k8s use ?

See coreos/fedora-coreos-docs#530

jbtrystram added a commit to jbtrystram/openshift-os that referenced this pull request Apr 3, 2024
FCOS had shipped ZRAM-generator for a while but it was not shared
with RHCOS. Moved the package to a different sub-manifest that
would regroup kubernetes-specific things.
The swap on ZRAM would still need to be actually enabled through
a config file [1] but that should be done by the MCO.

[1] https://github.com/systemd/zram-generator/blob/main/man/zram-generator.conf.md

ref: coreos/fedora-coreos-config#2937
ref: https://issues.redhat.com/browse/COS-2507
@jbtrystram jbtrystram added the help wanted Extra attention is needed label Apr 3, 2024
@dustymabe
Copy link
Member

If we need it in both RHCOS and FCOS then maybe just move it into manifests/system-configuration.yaml. It will automatically flow into RHCOS then.

In the commit message you can mention why (i.e. new kube support for swap).

@travier
Copy link
Member

travier commented Apr 3, 2024

It's also useful for non-k8s deployments so I'd would also vote for not adding a k8s specific manifest.

Kubernetes 1.28 now supports swap on zram as beta
Moving the zram-generator package to a manifest shared with rhcos.

See coreos/fedora-coreos-docs#530
@jbtrystram jbtrystram marked this pull request as ready for review April 8, 2024 13:13
@travier travier changed the title Manifests: Create a kubernetes specific manifest Manifests: move zram to system-configuration Apr 8, 2024
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dustymabe dustymabe enabled auto-merge (rebase) April 8, 2024 13:31
@dustymabe dustymabe merged commit fa2966b into coreos:testing-devel Apr 8, 2024
3 checks passed
@jbtrystram jbtrystram deleted the manifests/zram branch April 10, 2024 07:18
jbtrystram added a commit to jbtrystram/fedora-coreos-config that referenced this pull request Apr 10, 2024
In coreos#2937
we moved zram-generator to the system-configuration.yaml
manifest so it's shared with RHCOS.
However in the centOS stream 9 zram-generator-0.3.2 [1] ships a
default config file, resulting in a swap device being created
by default.
This ends up breaking kubelet, until kubernetes 1.30
is released

[1] https://gitlab.com/redhat/centos-stream/rpms/rust-zram-generator/-/blob/c9s/zram-generator.conf?ref_type=heads
jbtrystram added a commit to jbtrystram/fedora-coreos-config that referenced this pull request Apr 10, 2024
In coreos#2937
we moved zram-generator to the system-configuration.yaml
manifest so it's shared with RHCOS.
However in the centOS stream 9 zram-generator-0.3.2 [1] ships a
default config file, resulting in a swap device being created
by default.
This ends up breaking kubelet, until kubernetes 1.30
is released

[1] https://gitlab.com/redhat/centos-stream/rpms/rust-zram-generator/-/blob/c9s/zram-generator.conf?ref_type=heads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants