feat: spread game fleet across on-demand zones

This commit is contained in:
Josh Creek
2026-08-31 21:59:51 +01:00
parent 90126a4be7
commit 72d4a604c2
4 changed files with 22 additions and 3 deletions
+7
View File
@@ -19,6 +19,13 @@ class FleetManifestTest(unittest.TestCase):
self.assertIn(label, fleet)
for hardening in ("runAsNonRoot: true", "automountServiceAccountToken: false", "readOnlyRootFilesystem: true", "allowPrivilegeEscalation: false"):
self.assertIn(hardening, fleet)
for scheduling in (
"cosmic-clash.io/capacity-type: on-demand",
"topologyKey: topology.kubernetes.io/zone",
"whenUnsatisfiable: DoNotSchedule",
"maxSkew: 1",
):
self.assertIn(scheduling, fleet)
def test_autoscaler_preserves_ready_floor_and_owns_fleet(self):
autoscaler = self.read("base/fleet-autoscaler.yaml")