docs(deploy): redesign EKS documentation, rename k8s to eks, and add scalable deployment feature

This commit is contained in:
yiling
2026-10-18 19:04:36 +08:00
parent 4841a49373
commit 561d84c529
15 changed files with 257 additions and 328 deletions
+55
View File
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: shumai-transcode
namespace: shumai
labels:
app: shumai-transcode
spec:
replicas: 1
selector:
matchLabels:
app: shumai-transcode
template:
metadata:
labels:
app: shumai-transcode
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/nodegroup
operator: In
values:
- shumai-transcode-spot
- matchExpressions:
- key: workload
operator: In
values:
- transcode
terminationGracePeriodSeconds: 300
containers:
- name: worker
image: shumaione/shumai-transcode:latest
imagePullPolicy: IfNotPresent
env:
# Downward API: Injects the unique pod name so DbosExecutor assigns a unique,
# deterministic executor ID per worker replica across pod restarts.
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
envFrom:
- configMapRef:
name: shumai-config
- secretRef:
name: shumai-secret
resources:
requests:
cpu: 3000m
memory: 4Gi
limits:
cpu: 3900m
memory: 6Gi