# Kubernetes 部署(可选) apiVersion: apps/v1 kind: Deployment metadata: name: tornado-elevue namespace: default labels: app: tornado-elevue spec: replicas: 2 selector: matchLabels: app: tornado-elevue template: metadata: labels: app: tornado-elevue spec: containers: - name: tornado-elevue image: registry.example.com/tornado-elevue:latest ports: - containerPort: 8041 envFrom: - configMapRef: name: tornado-elevue-config resources: requests: cpu: 250m memory: 512Mi limits: cpu: 500m memory: 1Gi livenessProbe: httpGet: path: /api/v1/health port: 8041 initialDelaySeconds: 15 periodSeconds: 20 readinessProbe: httpGet: path: /api/v1/health port: 8041 initialDelaySeconds: 5 periodSeconds: 10 volumeMounts: - name: uploads mountPath: /data/apps/uploads volumes: - name: uploads persistentVolumeClaim: claimName: tornado-elevue-uploads --- apiVersion: v1 kind: ConfigMap metadata: name: tornado-elevue-config data: TORNADO_ENV: production TORNADO_PORT: "8041"