Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Kubernetes Blog 5 min read Release mediumAdept

Kubernetes v1.37: KubeletInUserNamespace (aka Rootless mode) Graduates to Beta

Kubernetes v1.37 promotes the KubeletInUserNamespace feature gate to beta, enabling all node components (kubelet, CRI/OCI runtimes, CNI plugins, kube-proxy) to run as a non-root host user inside a Linux user namespace so container-breakout bugs like runc and containerd CVEs are confined to that account. The gate itself mainly makes the kubelet tolerate permission errors on certain sysctls and /dev/kmsg. The user namespace must be created externally, for example via rootless Docker. Beta enables the gate by default with no effect on rootful clusters, exposes a runningInUserNamespace node property for labeling or tainting, and adds rootless conformance CI. Combined with hostUsers: false pods, it allows Kubernetes-in-Kubernetes without privileged containers, usable today via kind, minikube, Usernetes or k3s.

Related posts

  • Kubernetes v1.37: Hardening Container Storage with Bind Mount Options and EmptyDir Permissions

    Kubernetes Blog mediumAdept

    Kubernetes v1.37 adds two alpha storage-hardening features: per-volumeMount `bindMountOptions` (noexec, nosuid, nodev) applied by the container runtime, and a `mode` field on `emptyDir` volumes that replaces the hardcoded 0777. Together they block a compromised process from downloading and executing binaries on writable volumes even with a read-only root filesystem, and let you set sticky-bit (01777) or least-privilege (0750) permissions without init containers. bindMountOptions works on most volume types except image volumes and requires CRI `mount_options` support, enforced through Node Declared Features and kubelet rejection. emptyDir mode needs no runtime support, is overridden by fsGroup, and both features are Linux-only behind the VolumeBindMountOptions and EmptyDirVolumeMode gates.

  • Kubernetes v1.37 Sneak Peek

    Kubernetes Blog mediumAdept

    Kubernetes v1.37 deprecates kube-proxy's ipvs mode, which still relies on iptables underneath. ipvs is slated to be off by default by v1.40 and removed by v1.43. The release also deprecates `kubectl run -f`, strictly forbids static Pods from referencing Secrets or ConfigMaps, and keeps cgroup v1 behind a temporary `failCgroupV1: false` override ahead of its removal. SELinuxMount going GA is a breaking change: pods with different SELinux labels sharing a volume on one node may fail to start unless `seLinuxChangePolicy: Recursive` is set. Featured enhancements are the metrics.k8s.io API reaching GA, rootless kubelet in a user namespace moving to Beta, and a reworked alpha Volume Health Monitor with four new CSI RPCs that surface health in PVC, Pod and CSINode status.

  • Understanding the Docker USER Instruction

    Docker mediumAdept

    Docker containers run as root (UID 0) unless a Dockerfile sets the USER instruction, which widens the damage if a container is compromised. Recommended practices: always set USER explicitly, prefer numeric UID:GID over names, and create a dedicated application user with useradd. Switch to root only for privileged build steps such as package installs, and pair USER with WORKDIR and chown so the user can write to its directories and mounted volumes. A side-by-side Dockerfile demo shows the default root user versus a custom UID/GID 1234 user, and user namespaces (used by Docker's Enhanced Container Isolation) can map in-container root to an unprivileged host ID.

  • Kubernetes v1.37: Pod-Level Resource Managers graduated to Beta

    Kubernetes Blog hardMaster

    Kubernetes v1.37 promotes Pod-Level Resource Managers to Beta behind the `PodLevelResourceManagers` feature gate, disabled by default. The feature lets the kubelet's Topology, CPU and Memory Managers use pod-level `.spec.resources` for placement, so primary containers get exclusive NUMA-aligned cores while non-Guaranteed sidecars share a pod-isolated pool without dedicated physical cores. Beta also adds top-level `cpu_ids` and `memory` fields to the v1 PodResources gRPC API, letting monitoring tools and device plugins read pod-level exclusive assignments without double-counting container allocations.

  • Single-tenant Titus: VM-level isolation on a multi-tenant container platform

    Netflix TechBlog mediumAdept

    Netflix added a single-tenant mode to Titus, its Kubernetes-based multi-tenant container platform, giving selected tasks a dedicated, right-sized EC2 instance while keeping the same API, deployment path and platform-managed hosts. Shared-kernel isolation (cgroups, CFS, iocost, HTB traffic shaping) cannot partition last-level cache, memory bandwidth, softirq budget or kernel locks, so stateful streaming jobs suffered tail-latency spikes and checkpoint restores from noisy neighbors. The team rejected microVMs (bare-metal or nested virtualization constraints, self-run hypervisor, no GPUs), gVisor (syscall overhead on IO-heavy paths) and raw EC2 (loss of the managed experience) because these workloads need resource isolation, not protection from hostile tenants. The implementation uses an allowlist in the federation layer, just-in-time autoscaling that picks the smallest fitting instance from allowed families, and anti-affinity, taints, a non-preemptible priority class and disabled repacking to guarantee one task per node.

The quest for software engineering knowledge.

Look:
Layout: