fix: harden operator manager pod with readOnlyRootFilesystem and resource limits - #181
Merged
miyunari merged 1 commit intoSep 20, 2026
Merged
Conversation
…urce limits Add readOnlyRootFilesystem: true to the manager container SecurityContext to meet restricted Pod Security Standards and prevent filesystem tampering. Set resource requests/limits (CPU 10m/500m, Memory 64Mi/256Mi) to prevent unbounded resource consumption. Signed-off-by: Sachin Sampras M <sampras343@gmail.com>
Contributor
Author
|
The comment is still preserved to allow users to edit these resource limits based on requirements. But a default is set as a preventive method in case of mem leaks. |
miyunari
approved these changes
Sep 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Harden the operator manager deployment (
config/manager/manager.yaml):readOnlyRootFilesystem: trueon the manager containerWhy
The manager container's SecurityContext was missing
readOnlyRootFilesystem, which fails restricted Pod Security Standards. A writable rootfs also means a compromised process (e.g., RCE via a dependency vulnerability) could drop binaries or modify DNS config inside the container.Resource limits were
{}. MVO runs a webhook in the admission path of every pod creation. A webhook with no memory limit that leaks under load can OOM-kill other pods on the node via eviction pressure. CPU limits prevent a runaway reconciliation loop from starving the kubelet.Both are about MVO being trustworthy as a security component.
Summary
readOnlyRootFilesystem: trueto the manager container SecurityContext to meet restricted Pod Security Standards and prevent filesystem tampering in a compromised-process scenarioCloses #182
Release Note
Documentation