feat(deploy): implement KEDA ScaledJob and scale-to-zero On-Demand transcoding

This commit is contained in:
yiling
2026-10-18 22:35:11 +08:00
parent 6d823ef0df
commit a16a1515d7
20 changed files with 845 additions and 255 deletions
+12 -9
View File
@@ -34,20 +34,23 @@ managedNodeGroups:
ebs: true
# Transcoding compute pool: High-CPU media processing
# Uses Spot instances with capacity diversification across Graviton generations
- name: shumai-transcode-spot
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
desiredCapacity: 1
# Uses On-Demand instances with scale-to-zero (minSize: 0) managed by Cluster Autoscaler / Karpenter
- name: shumai-transcode
instanceType: c9g.xlarge # 4 vCPU, 8 GiB RAM (Graviton5 On-Demand, ~$0.174/hr)
spot: false
minSize: 0
maxSize: 10
desiredCapacity: 0
amiFamily: AmazonLinux2023
volumeSize: 50
volumeType: gp3
labels:
workload: transcode
role: transcode
taints:
- key: dedicated
value: transcode
effect: NoSchedule
iam:
withAddonPolicies:
autoScaler: true