-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelm-values.yaml
More file actions
86 lines (76 loc) · 2.26 KB
/
helm-values.yaml
File metadata and controls
86 lines (76 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Custom values for deploying to Kubernetes with external registry
image:
repository: registry.ogaro.com/django-deepface-demo
tag: "latest"
pullPolicy: Always
imagePullSecrets:
- name: registry-ogaro-com
# Enable ingress for external access
ingress:
enabled: true
className: ""
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"
hosts:
- host: deepface.ogaro.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: deepface-ogaro-com-tls
hosts:
- deepface.ogaro.com
# Django configuration
django:
debug: false
allowedHosts: "deepface.ogaro.com,localhost,127.0.0.1"
secretKey: "" # Will be auto-generated
database:
external: true
password: "postgres123"
# Gunicorn configuration for runtime model loading
gunicorn:
workers: 3 # Reduced to lower memory usage
timeout: 300 # 5 minutes for model download on first request
# PostgreSQL configuration
postgresql:
enabled: false
auth:
postgresPassword: "postgres123"
# Reduced resource limits to avoid scheduling issues
resources:
limits:
cpu: 500m
memory: 4Gi # Reduced to fit cluster capacity with 2 workers
requests:
cpu: 100m
memory: 1Gi # Conservative request for scheduling
# Extended probe timeouts for DeepFace loading
livenessProbe:
httpGet:
path: /demo/
port: http
initialDelaySeconds: 120 # Wait 2 minutes before first check
periodSeconds: 30 # Check every 30 seconds
timeoutSeconds: 10 # Allow 10 seconds for response
failureThreshold: 5 # Allow 5 failures before restart
readinessProbe:
httpGet:
path: /demo/
port: http
initialDelaySeconds: 60 # Wait 1 minute before first check
periodSeconds: 15 # Check every 15 seconds
timeoutSeconds: 10 # Allow 10 seconds for response
failureThreshold: 10 # Allow 10 failures before marking unready
# Autoscaling disabled for demo
autoscaling:
enabled: false
# Storage for media files
django:
media:
size: 5Gi
# storageClass: "" # Use default storage class