---
source: https://iinventedlight.com/library/notes/kubernetes-sysctls.md
title: "Kubernetes sysctls: safe and unsafe kernel parameters"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (Kubernetes website); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes sysctls"
tags: [kubernetes, sysctl, securityContext, pods, kernel]
client: Librarian
sources:
  - id: S1
    title: "Using sysctls in a Kubernetes Cluster"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "sysctl-cluster.md"
    publisher: Kubernetes website
    url: https://raw.githubusercontent.com/kubernetes/website/main/content/en/docs/tasks/administer-cluster/sysctl-cluster.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

```yaml
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

- `Namespaced` sysctls are set through the pod securityContext.
- `Kubernetes` classes sysctls as either safe or unsafe.
- `safe` A safe sysctl must be isolated between pods on the same node.

## See also

- [kubernetes-pods](https://iinventedlight.com/library/notes/kubernetes-pods/)
- [kubernetes-network-policies](https://iinventedlight.com/library/notes/kubernetes-network-policies/)
- [kubernetes-namespaces](https://iinventedlight.com/library/notes/kubernetes-namespaces/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
