← All notes

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

See also

Claims

Sources

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

Permanent ID: iil:note:zm5r1qmw

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.},
}

Markdown

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.

All artifact files (JSON index)

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.