OpsCanary
kubernetesschedulingPractitioner

Kubernetes v1.38: Embracing cgroup v2 and Enhanced Pod Eviction

5 min read Kubernetes BlogNov 23, 2026Reviewed for accuracy
Share
Practitioner — Hands-on experience recommended

Kubernetes v1.38 is a significant release that addresses the ongoing transition from cgroup v1 to cgroup v2. This shift is crucial for performance and resource management in your clusters. By default, v1.38 will not allow the legacy cgroup configuration mechanism, pushing users to adopt the modern approach that aligns with the latest container runtime recommendations.

The kubelet's behavior in this version is pivotal. It defaults to not supporting the legacy configuration unless explicitly re-activated. You can control this with the failCgroupV1 parameter, which allows the kubelet to start on nodes using cgroup v1, though it's set to false by default. Additionally, the LegacyCgroupDriverFallback feature gate is available, but it’s important to note that it will be locked on when the feature graduates to stable.

In production, you need to be aware of the implications of these changes. If you rely on webhooks for eviction requests, you might want to turn the feature gate off temporarily. Also, check any workloads that depend on swap before upgrading to v1.38. Always consult the release notes for detailed advice on migration and compatibility.

Key takeaways

  • →Understand that Kubernetes v1.38 defaults to cgroup v2, phasing out cgroup v1.
  • →Use the `failCgroupV1` parameter to control kubelet behavior regarding cgroup v1.
  • →Be aware of the EvictionRequest API for better Pod eviction management.
  • →Prepare for the future by transitioning to the recommended cgroup v2 configuration.
  • →Check your workloads for swap dependencies before upgrading to v1.38.

Why it matters

Transitioning to cgroup v2 improves resource management and performance, which is critical for scaling applications in production environments. The enhanced eviction process allows for smoother operations during resource constraints.

When NOT to use this

The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.

Want the complete reference?

Read official docs

Test what you just learned

Quiz questions written from this article

Take the quiz →
Linux FoundationSponsor

Industry-standard certifications built by the people behind Linux and Kubernetes. Earn the CKA — the gold standard Kubernetes administrator cert. OpsCanary readers get 30% off year-round with code OPSCANARY3.

Get CKA certified →

Get the daily digest

One email. 5 articles. Every morning.

No spam. Unsubscribe anytime.