Repository navigation
v1.1.0 expands DisaggregatedSet rollout controls and improves LWS updates. It also adds scheduling, observability, and GPU infrastructure features.
-
DisaggregatedSet canary rollouts: DisaggregatedSet can hold percentage canaries across groups or slices before promotion.
maxConcurrentSliceslimits how many slices update at once. PRs: #1307, #1374. -
DisaggregatedSet immediate scale-up: Opt into
spec.scalingPolicy.scaleUpDuringRollout: Immediateto request more capacity while rollout batches wait for readiness. PR: #1225. -
DisaggregatedSet subrole scaling delay: DisaggregatedSet can batch updates for pools with multiple subroles and an external scaler, helping reuse groups. Configure
spec.scalingPolicy.subRoleScaleDelaySeconds(default: two seconds;0disables it). PR: #1214. -
DisaggregatedSet rollout visibility: New status fields and
kubectl getcolumns expose DisaggregatedSet rollout progress.MinimumReplicasAvailablereports whether all roles meet their capacity floor during rollouts. PRs: #1375, #1233. -
LWS rollouts during scale-up: Fixes rollout stalls during LWS scale-up in
OrdinalandHashmodes. Ordinal rollouts also use the fullmaxUnavailablebudget when native StatefulSet support is disabled. PR: #1258. -
LWS topology placement: Use
spec.placementPolicyfor LWS exclusive topology placement. Placement changes respectmaxSurgeandmaxUnavailable. Existing annotations still work but are deprecated. PR: #1165. -
LWS Volcano topology: LWS annotations configure hard or soft topology constraints for new Volcano PodGroups. Requires Volcano network topology scheduling. PR: #1293.
-
NVIDIA ComputeDomains — alpha: Opt into
AutoComputeDomainto manage NVIDIA ComputeDomains and inject ResourceClaims. Supports LWS replica groups and DisaggregatedSet slices. PR: #1263. -
Metadata protection: Standard Helm and Kustomize installs protect reserved LWS and DisaggregatedSet metadata. Public configuration annotations remain editable. See the urgent upgrade notes for requirements. PR: #1306.
Changelog
Urgent Upgrade Notes
(No, really, you MUST read this before you upgrade)
-
Metadata protection is now enabled by default in Helm and Kustomize installations. It protects labels and annotations managed by LWS and DisaggregatedSet.
Before upgrading:
- Installer permissions: You must be allowed to create
ValidatingAdmissionPolicyandValidatingAdmissionPolicyBindingresources. - Shared controller credentials: If kube-controller-manager runs with
--use-service-account-credentials=false, switch it totrueor follow the compatibility instructions. Otherwise, LWS Pod creation is denied. The shared-identity workaround provides weaker protection. - Custom schedulers: Configure their identities if they differ from the defaults.
To disable protection, set
metadataProtection.enabled=falsein Helm or omit themetadata-protectionKustomize component.Public configuration annotations and scaling remain editable. Supported Kubernetes versions are unchanged. (#1306, @hasB4K)
- Installer permissions: You must be allowed to create
-
Before upgrading to Helm chart v1.1.0 or later, review your existing DisaggregatedSet configurations and ensure they pass validation. The chart now always installs the DisaggregatedSet validating webhook and user-facing ClusterRoles. The
enableDisaggregatedSetoption is removed, and previousfalsevalues are ignored. Existing objects are not immediately revalidated, but subsequent create/update requests must pass validation. (#1220, @hasB4K) -
Fixed the
subgroup-indexlabel forLeaderExcludedsubgroups withsubGroupSize1: workers are now numbered from0, matching the TPU environment variables. recreate existingLeaderExcludedgroups withsubGroupSize1after upgrading, otherwise a worker that restarts alone can end up sharing a subgroup with an old sibling. During the upgrade, old and new webhook replicas number these workers differently and can give two workers the same subgroup index, so wait until every webhook replica runs the new version before creating or recreating these groups. (#1339, @chethanuk)
Changes by Kind
API Change
- Add
spec.placementPolicyto LeaderWorkerSet for exclusive topology placement, withspec.placementPolicy.subGroupfor subgroups. Theleaderworkerset.sigs.k8s.io/exclusive-topologyandleaderworkerset.sigs.k8s.io/subgroup-exclusive-topologyannotations are deprecated and still work. Exclusive placement is now part of the LeaderWorkerSet revision: changing it, through the field or an annotation, rolls out under maxUnavailable and maxSurge instead of replacing every group at once. Moving a value from an annotation to the field does not replace any group. A role's exclusive placement, from the field or the annotations, cannot be combined with a non-None DisaggregatedSet placementPolicy. (#1165, @aliceco01) - Add
spec.rolloutStrategy.maxConcurrentSlicestoDisaggregatedSetto limit how many slices roll out in parallel (integer >= 1 or percentage ofspec.slices, rounded down with minimum 1), composing withspec.rolloutStrategy.canaryin bothSlicesandGroupsdimensions. (#1374, @ahg-g) - DisaggregatedSet adds the opt-in scalingPolicy.scaleUpDuringRollout: Immediate policy to request missing capacity during a rolling update without waiting for the current rollout batch to become Ready. Existing readiness-paced scale-up remains the default; scale-down policies and old-revision availability safeguards are unchanged. (#1225, @hasB4K)
- DisaggregatedSet supports percentage canaries across replica groups or whole slices through spec.rolloutStrategy.canary. Promotion is forward-only; rollback uses previous templates. During a partial hold, Immediate applies demand changes and Deferred queues them. Existing baseline/canary pairs are retained when scaling to one. Setting percent to 100 or omitting it finalizes the rollout; revision cleanup must finish before another partial canary starts, without requiring every Pod to be Ready. (#1307, @hasB4K)
- DisaggregatedSet waits two seconds by default before resizing an existing LWS with multiple subroles and at least one External scaler, allowing nearby scaler updates to reuse existing groups. Configure spec.scalingPolicy.subRoleScaleDelaySeconds (0–60), or set it to 0 to disable the delay. Scaling from zero and template rollouts are unchanged. (#1214, @hasB4K)
- DisaggregatedSet: each role and sub-role status now reports
minAvailableReplicas(desired minus maxUnavailable, totalled across slices) andavailableReplicas(Ready replicas whose revision has every required role Ready), and a newMinimumReplicasAvailablecondition reports whether every role meets its floor. UnlikeAvailable, it stays True during rollouts and scale-ups that remain within each role's maxUnavailable budget. (#1233, @johnnietse) - Publish
status.targetRevision,status.updatedSlices, andstatus.updatingSlicesonDisaggregatedSetand addkubectl getprint columns (Slices,Updated,Updating,Available,Revisionin-o wide,Age). (#1375, @ahg-g)
Feature
- Add alpha
AutoComputeDomainfeature gate for automatic NVIDIA DRAComputeDomainlifecycle management and podResourceClaiminjection perLeaderWorkerSetreplica (leaderworkerset.sigs.k8s.io/auto-compute-domain: "enabled") and perDisaggregatedSetslice (disaggregatedset.x-k8s.io/auto-compute-domain: "enabled"), with opt-in Helm RBAC (computeDomainManagement.enabled). (#1263, @ahg-g) - Helm chart: add
image.manager.digestto pin the controller manager image by digest; when set, it takes precedence overimage.manager.tag. (#1228, @giuliocalzo) - Helm: Add
leaderElection.leaseDuration,leaderElection.renewDeadlineandleaderElection.retryPeriodvalues to tune the manager's leader election lease. (#1215, @Huang-Wei) - Include
for slice <N>in slice-scopedDisaggregatedSetrollout events (RollingUpdateStarted,RollingUpdateCompleted,RevisionDrainBlocked,BootstrapSurge, andAvailabilityFallback). (#1376, @ahg-g) - The LWS manager serves three new counters: lws_group_recreations_total, lws_group_restart_budget_exhausted_total and lws_group_restart_backoffs_total. The ServiceMonitor sets honorLabels: true. (#1286, @sohom-cs)
- The Volcano provider now supports configuring network topology constraints
for newly created PodGroups through the
volcano.sh/network-topology-highest-tier-allowed and
volcano.sh/network-topology-mode annotations on LeaderWorkerSets. (#1293, @y805939188) - When a LeaderWorkerSet pod template is rejected by the API server (e.g. an invalid securityContext), the controller now sets
Progressing=FalseandAvailable=Falsewith reasonInvalidTemplatecarrying the rejection message, flips an interruptedUpdateInProgresstoFalse, and refreshesstatus.observedGeneration— instead of reporting "Replicas are progressing" indefinitely. With a dedicated leader template, worker templates are validated via a dry-run apply on new or updated revisions. Conditions self-heal once the template is fixed or rolled back. (#1290, @hargrovee)
Documentation
- Publish commit-specific development Helm charts from main with digest-pinned controller images. Installation documentation selects the matching development or released chart through a shared example. (#1248, @hasB4K)
Bug or Regression
-
DisaggregatedSet admission now accepts percentage rollout budgets on roles with
scaling.mode: External, such asmaxSurge: 0withmaxUnavailable: 25%. They were rejected because they were resolved against the ignoredspec.replicas. Only budgets that are zero at every size are rejected. (#1230, @vivekk16) -
DisaggregatedSet: admission now reserves room in generated names for the group index of a new External role or sub-role, so an autoscaler growing the role cannot produce Pod labels longer than 63 characters unless it passes the reserved size. This is 8 digits (100 million groups): with the default groupIdentity, the DisaggregatedSet name and a new External role's name can be at most 31 characters combined. Roles that were already External keep their earlier limit on updates, with an admission warning when their names cannot hold 8 digits. (#1242, @johnnietse)
-
DisaggregatedSet: validating webhook now validates that spec.placementPolicy.topology is a valid qualified label key. (#1244, @Dasmat13)
-
Events that embed an error message no longer garble percent signs in the error text. (#1365, @rayowang)
-
Fix Kubernetes workload-aware scheduling reconciliation failing with PodGroup drift when a cluster has a global default PriorityClass and the LeaderWorkerSet omits priorityClassName. (#1363, @pandacooming)
-
Fix ServiceAccount rendering failures when upgrading older releases with --reuse-values (#1251, @weizhoublue)
-
Fix a multi-replica startup race where an elected leader waited for its local webhook certificate mount before registering controllers, leaving workloads unreconciled while peer replicas served webhooks. (#1274, @ahg-g)
-
Fix combined template updates and scale-ups (and scale-ups during active rolling updates) in both
OrdinalandHashgroupIdentity modes so pending scale-up replicas no longer deadlock existing group replacements (#717). Rollout disruption is now paced against the pre-rollout availability floormax(0, min(baselineReplicas, spec.replicas) - maxUnavailable).In
Ordinalmode, the controller now deletes outdated leader pods itself when the StatefulSet controller waits at a leader that is not Ready. Rolling updates therefore use the fullmaxUnavailablebudget on clusters where theMaxUnavailableStatefulSetfeature gate is disabled (the default in Kubernetes 1.34, 1.35.4 and later 1.35 patches, and 1.36). On those clusters a rollout withmaxUnavailablegreater than 1 now replaces up tomaxUnavailablegroups at a time. It replaced one group at a time before. SetmaxUnavailableto 1 to keep the old pace. (#1258, @ahg-g) -
Fix group recreation when a worker Pod is deleted or replaced while the controller is down. The leader's worker UID record lets LWS detect the failure after restart. RecreateGroupAfterStart can recover a group that had already started even while its replacement worker is Pending or unschedulable. (#1319, @pandacooming)
-
Fix(helm): avoid upgrade rendering failures when leaderElection is absent (#1254, @weizhoublue)
-
Fixed DisaggregatedSet reconciler attempting to reconcile and write status on deleting sets, and prevented duplicate deletion events for terminating LeaderWorkerSets and scalers. (#1269, @Dasmat13)
-
Fixed a group restart counting more than once against maxGroupRestarts when several of its pods failed at once. (#1249, @pandacooming)
-
Fixed a plain scale-down in Ordinal mode with maxSurge > 0 stopping above spec.replicas when remaining groups had exhausted their restart budget. (#1384, @rayowang)
-
Fixed a race where terminating a group that exhausted its restart budget could mark exhausted or delete a same-name replacement leader, holding a healthy group until manual recovery. (#1359, @rayowang)
-
Fixed a reconcile error when cleaning up a ControllerRevision that was already deleted after a rollout. (#1364, @rayowang)
-
Fixed a stale-cache race in group restart handling where a conflict retry could bypass
maxGroupRestarts, drop a restart charge, or skiprestartBackoff. (#1370, @pandacooming) -
Fixed an Ordinal LeaderWorkerSet not reporting the UpdateInProgress condition during a rolling update when groups still on the old revision had no worker StatefulSet, for example under the LeaderReady startup policy when the old leaders never became Ready. (#1362, @rayowang)
-
Fixed reconciliation errors when enabling the Volcano provider for existing
LeaderWorkerSet Pods on other schedulers that lack a group-name annotation
and do not use spec.scheduling. These Pods no longer require annotation
backfilling to continue reconciliation. (#1296, @y805939188) -
Fixed the GroupsUpdating event recorded during a rolling update to report
Updateas its action instead of repeating the event note. (#1357, @rayowang) -
Fixed the LWS controller removing kubelet pod conditions such as Ready from leader pods when it set the group-ready condition. (#1217, @aliceco01)
-
Fixed the pod controller reporting a successful reconcile when reading a worker's leader Pod failed with a transient API error, which dropped the retry for that event. (#1358, @rayowang)
-
Helm upgrades now roll controller-manager Pods when their configuration changes, so they pick up the new settings automatically. (#1231, @hasB4K)
-
LeaderWorkerSet and DisaggregatedSet now handle a percentage maxUnavailable that rounds down to 0 with maxSurge 0 the way Deployments do: the controller uses maxUnavailable 1 instead of stalling the rollout, and the webhooks no longer reject these budgets when replicas are above 0. (#1344, @alexcole)
-
LeaderWorkerSet updates that change volumeClaimTemplates fields copied to the StatefulSets are now rejected at admission. Previously they were accepted and then blocked every later StatefulSet update, so the LeaderWorkerSet stopped scaling and rolling out. A LeaderWorkerSet already in that state can be recovered by reverting its volumeClaimTemplates to the ones on its leader StatefulSet. If a group was recreated while the templates were changed, recreate that group again after the revert. (#1387, @rayowang)
-
Lws-controller-manager now reports Ready only after its webhook server has started, so webhook calls are not refused right after the Deployment becomes Available. (#1261, @ivnovakov)
-
Make leader Pods the controller owner of Ordinal Volcano PodGroups under
spec.schedulingso Kubernetes garbage collection cleans up obsolete PodGroups automatically on rolling updates, scale-downs, and MaxSurge reclaims (pre-upgrade LWS-owned PodGroups continue to be accepted). (#1367, @pandacooming) -
Reduce redundant DisaggregatedSet status-write conflicts while waiting for the informer cache to observe a newer object version. (#1213, @hasB4K)
-
Reuse existing ControllerRevisions during LeaderWorkerSet leader workload creation retries and recreation to avoid duplicates. Existing duplicates are removed, as before, once an update to a different template completes. (#1353, @weizhoublue)
-
Rolling a LeaderWorkerSet back to its previous template during a rolling update now reuses that template's ControllerRevision, when it has the same data and records placement, instead of creating a second revision under the same key. This prevents the duplicate that caused the recurring "More than one revision exists" error log. Duplicates that already exist are removed, as before, once an update to a different revision key completes. (#1341, @lkhun9311)
-
The LWS manager pod now sets the RuntimeDefault seccomp profile, so it runs in namespaces that enforce the restricted Pod Security level. (#1330, @Goguzgungor)
-
Update golang.org/x/net to v0.62.0 to address CVE-2026-78661 and CVE-2026-97045. (#1252, @hasB4K)
-
With the
kubernetesscheduler provider, delegatedWorkloadlookup no longer issues uncached API serverGETs when walking intermediateDisaggregatedSetowners or while waiting for a third-party parentWorkloadto appear in cache. (#1256, @ahg-g)
Other (Cleanup or Flake)
- Fix nil pointer panic in leaderworkerset-controller when subGroupPolicy is configured without subGroupPolicyType. (#1303, @Dasmat13)
Uncategorized
- Fixed the exclusive placement being skipped when the workload template carries its own required affinity and anti-affinity on the same topology key. The terms are injected at pod admission, so pods admitted before this fix keep running without them until they are recreated; recreate the affected groups to pick the fix up. (#1328, @GebilaoweiI)
- SubGroupPolicy: reject TPU-divergent subgroup layouts — a CPU leader with TPU workers when size is divisible by subGroupSize, LeaderExcluded with a TPU leader, or both leader and workers requesting TPUs in the leader-extra layout — whose TPU env injection disagrees with the subgroup labels. Pods that already set TPU_WORKER_HOSTNAMES or TPU_WORKER_ID manage their own TPU process group and are not affected. Objects created before this check remain fully writable, including edits that move them to another rejected layout; only creates and writes that turn a passing layout into a rejected one are rejected. (#1285, @zhouyou9505)