Refactor all main.py

This commit is contained in:
Urtzi Alfaro
2025-09-29 13:13:12 +02:00
parent 4777e59e7a
commit befcc126b0
35 changed files with 2537 additions and 1993 deletions

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -115,7 +115,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -123,12 +123,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -57,7 +57,7 @@ spec:
cpu: "500m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 5
@@ -65,12 +65,12 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: 15
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 3
failureThreshold: 5
---
apiVersion: v1

View File

@@ -65,7 +65,7 @@ spec:
cpu: "2000m"
livenessProbe:
httpGet:
path: /health
path: /health/live
port: 8000
initialDelaySeconds: 60
timeoutSeconds: 30
@@ -73,12 +73,12 @@ spec:
failureThreshold: 5
readinessProbe:
httpGet:
path: /health
path: /health/ready
port: 8000
initialDelaySeconds: 15
timeoutSeconds: 10
initialDelaySeconds: 30
timeoutSeconds: 15
periodSeconds: 15
failureThreshold: 3
failureThreshold: 5
volumes:
- name: training-state
persistentVolumeClaim: