Kubernetes

Kubernetes issue (Nov 23): Kubernetes KCM High Memory Utilization and OOM in StatefulSet Controller

high

Is it fixed? Not yet.

Ongoing since Nov 23, 18:39 UTC. First reported Nov 23, 18:39 UTC.

What happened

StatefulSets configured with a very large spec.replicas cause kube-controller-manager (KCM) to experience extremely high memory utilization and potential out-of-memory (OOM) crashes. The issue stems from the StatefulSet controller allocating a slice sized to spec.replicas and looping over every ordinal on each sync loop.

What caused it?

defaultStatefulSetControl.updateStatefulSet allocates a slice sized directly to spec.replicas and loops over every ordinal on each sync, creating excessive memory overhead for large replica counts.

Source: github.com

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Official fix

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    StatefulSet controller builds a Pod object for every ordinal in spec.replicas on each sync leading to high memory utilization on KCM

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    StatefulSet controller builds a Pod object for every ordinal in spec.replicas on each sync leading to high memory utilization on KCM(opens GitHub issue in a new tab)

    What happened? We observed a failure mode where a StatefulSet with a very large spec.replicas can cause kube-controller-manager very high memory utilization and even OOM. The problem is from defaultStatefulSetControl.updateStatefulSet in pkg/controller/statefulset/stateful_set_control.go. On every sync, defaultStatefulSetControl.updateStatefulSet: Allocates a slice sized to spec.replicas: replicas := make([]*v1.Pod, replicaCount). Loops over every ordinal (Pod index, e.g. web-0, web-1, ...) in…

    by rcrozean 0upvotes 3comments

Kubernetes issue FAQ

What happened in the Kubernetes issue, and why?

Ongoing since Nov 23, 18:39 UTC. The cause: defaultStatefulSetControl.updateStatefulSet allocates a slice sized directly to spec.replicas and loops over every ordinal on each sync, creating excessive memory overhead for large replica counts.

What is affected by the Kubernetes issue?

Kubernetes. Also affected at the same time: Akamai Linode.

When did the Kubernetes issue start and end?

It started Nov 23, 18:39 UTC and is still ongoing (2 d 22 h so far). This page updates as it develops.

How do I get alerts for Kubernetes?

Subscribe to the Kubernetes RSS feed for every new Kubernetes incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Kubernetes is down. Kubernetes feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.