75548dab2b
- Replace local file storage with S3-compatible object storage - Add automatic PDF download after generation - Include timestamps in filenames to ensure uniqueness - Remove unused static volume from Kubernetes deployment - Update ConfigMap to remove unused variables and add S3 configuration - Configure S3 credentials via Kubernetes secrets for both dev and prod environments - Add boto3 dependency for S3 integration
30 lines
706 B
YAML
30 lines
706 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: math-exercises-app
|
|
annotations:
|
|
# Development environment annotation
|
|
environment: development
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: math-exercises
|
|
env:
|
|
- name: ENVIRONMENT
|
|
value: development
|
|
- name: DEBUG
|
|
value: "false"
|
|
# Environment variables from S3 credentials secret
|
|
envFrom:
|
|
- secretRef:
|
|
name: s3-credentials
|
|
# Reduce resource consumption in development
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "64Mi"
|
|
cpu: "200m" |