-
Notifications
You must be signed in to change notification settings - Fork 159
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
Conversation
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
If we need it in both RHCOS and FCOS then maybe just move it into In the commit message you can mention why (i.e. new kube support for swap). |
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
2d1955f
to
a9f8f2a
Compare
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
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
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
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