feat(eks): use On-Demand for general nodegroup and add spot capacity diversification

This commit is contained in:
yiling
2026-10-18 19:47:41 +08:00
parent c1ca2819d7
commit afaa2e3ca3
6 changed files with 41 additions and 12 deletions
+8 -4
View File
@@ -16,9 +16,10 @@ addons:
managedNodeGroups:
# General system workload: Web UI, REST API, DBOS PostgreSQL, and Garage S3
- name: shumai-general-spot
instanceType: c9g.large # 2 vCPU, 4 GiB RAM (Graviton5 Spot, ~$0.03/hr)
spot: true
# Runs on On-Demand instances to guarantee database & storage durability without spot interruptions
- name: shumai-general
instanceType: c9g.large # 2 vCPU, 4 GiB RAM (Graviton5 On-Demand, ~$0.087/hr)
spot: false
minSize: 1
maxSize: 2
desiredCapacity: 1
@@ -33,8 +34,11 @@ managedNodeGroups:
ebs: true
# Transcoding compute pool: High-CPU media processing
# Uses Spot instances with capacity diversification across Graviton generations
- name: shumai-transcode-spot
instanceType: c9g.xlarge # 4 vCPU, 8 GiB RAM (Graviton5 Spot, ~$0.08/hr)
instanceTypes:
- c9g.xlarge # 4 vCPU, 8 GiB RAM (Graviton5 Spot, ~$0.08/hr, primary)
- c8g.xlarge # 4 vCPU, 8 GiB RAM (Graviton4 Spot, ~$0.07/hr, fallback pool)
spot: true
minSize: 1
maxSize: 5