Kubernetes sysctls: safe and unsafe kernel parameters
Answer: Namespaced sysctls are configurable via the pod securityContext. Kubernetes classes sysctls as either safe or unsafe. Besides namespacing, a safe sysctl must stay isolated between pods that share a node. Unsafe sysctls stay disabled by default. A cluster admin must allow them manually, node by node.
Examples
apiVersion: v1
kind: Pod
spec:
securityContext:
sysctls:
- name: kernel.shm_rmid_forced
value: "0"
Notes
A safe sysctl set on one pod must not influence any other pod on the node, and must not grant CPU or memory resources beyond that pod resource limits. Most namespaced sysctls are not in the safe set.
Reference list
Namespacedsysctls are set through the pod securityContext.Kubernetesclasses sysctls as either safe or unsafe.safeA safe sysctl must be isolated between pods on the same node.
See also
Claims
- id: C1 claim: Namespaced sysctls are set through the pod securityContext. source: S1 evidence: "Namespaced sysctls are configurable via the pod securityContext"
- id: C2 claim: Kubernetes classes sysctls as either safe or unsafe. source: S2 evidence: "Kubernetes classes sysctls as either _safe_ or _unsafe_"
- id: C3 claim: A safe sysctl must be isolated between pods on the same node. source: S2 evidence: "a _safe_ sysctl must be properly _isolated_ between pods on the same node"
Sources
- [S1] Using sysctls in a Kubernetes Cluster. Kubernetes docs. https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] sysctl-cluster.md. Kubernetes website. https://raw.githubusercontent.com/kubernetes/website/main/content/en/docs/tasks/administer-cluster/sysctl-cluster.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Using sysctls in a Kubernetes Cluster; Kubernetes website, sysctl-cluster.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Using sysctls in a Kubernetes Cluster; Kubernetes website, sysctl-cluster.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "Kubernetes sysctls: safe and unsafe kernel parameters." iinventedlight Library, iil:note:zm5r1qmw, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-sysctls/. License: CC-BY-4.0.
@misc{iil_note_zm5r1qmw,
author = {{iinventedlight}},
title = {{Kubernetes sysctls: safe and unsafe kernel parameters}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-sysctls/},
note = {Permanent ID iil:note:zm5r1qmw. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- kubernetes-sysctls.table.json (table; CC-BY-4.0)
- kubernetes-sysctls.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-sysctls.md.