Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7
What
Templates / ClusterClass
MachineHealthCheckfor control-plane and worker Machines in every flavor (cluster-template*.yaml), andhealthCheckfor both classes inclusterclass.yaml:nodeStartupTimeoutSeconds: 600Ready=FalseandReady=Unknownafter 600sremediation.triggerIf.unhealthyLessThanOrEqualTo: 40%MachineDeploymentspec.remediation.maxInFlight: 2.nodeDrainTimeoutSeconds: 900for control-plane and worker Machines.cluster-template.md,clusterclass.mdandcni.md. The CNI has to be installed within 10 min of the Nodes joining.Provider
ACTIVEservers used to reportProvisioning: server state is X. They now get a reason that matches the state, e.g.InstanceStopped,InstanceFailed,InstanceStartingorInstanceBusy. This applies to StackitMachines and the bastion.powerStatusis now read. AnACTIVEserver with power statusCRASHEDorERRORis reported as not ready (InstanceCrashed/InstancePowerError).ERROR,INACTIVE,DEALLOCATED,PAUSED,RESCUE, crashed). Events are deduplicated by condition reason.Why these values
A manual run on a real STACKIT cluster (1 control plane, 3 workers) tested each failure without and with a
Ready=Unknowncheck:UnknownUnknownReady=False)NodeDeleted)Ready=Unknown: a dead kubelet or a hung VM produces no signal other thanReady=Unknown. The STACKIT server state staysACTIVE. Losing the connection between the management and workload cluster does not cause remediation, because the MHC stops before it evaluates any targets.Ready=Falsenode hangs for as long as any pod cannot terminate. That happens, for example, when the container runtime is down.triggerIf: it limits mass remediation during network outages, but does not prevent it entirely once nodes recover one after another.Behaviour to be aware of
40%down. A MachineDeployment with fewer than 3 workers is never remediated, includingReady=Falseand deleted VMs. The docs recommendWORKER_MACHINE_COUNT≥ 3.nodeDrainTimeoutSecondsapplies to every Machine deletion, including upgrades and scale-down. Pods still protected by a PodDisruptionBudget after 15 min are no longer waited for.Testing
make test(new table test for the state mapping; envtest cases for STOPPING → INACTIVE with exactly one warning, ACTIVE + CRASHED, and a failed bastion) andmake lintkubectl apply --dry-run=server --validate=strictagainst the CAPI v1.13.2 CRDs; all new fields are keptmake test-e2e-workload-topologypasses with the final changes