increase replicas and resources for load test

This commit is contained in:
Petrraa
2026-05-02 17:31:01 +02:00
parent 16a0256ac6
commit c19165b673

View File

@@ -4,7 +4,7 @@ metadata:
name: moj-servis
namespace: student-petrraa
spec:
replicas: 1
replicas: 5
selector:
matchLabels:
app: moj-servis
@@ -24,7 +24,7 @@ spec:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 10 # čekaj 10s nakon starta
initialDelaySeconds: 15 # čekaj 15s nakon starta
periodSeconds: 15 # provjeri svakih 15s
timeoutSeconds: 3 # timeout odgovora
failureThreshold: 3 # 3 fail-a => restart
@@ -35,9 +35,9 @@ spec:
path: /health
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 2
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
envFrom: # <-- NOVO
- configMapRef:
@@ -54,5 +54,5 @@ spec:
name: moj-servis-secret
key: API_KEY
resources:
requests: { memory: "64Mi", cpu: "50m" }
limits: { memory: "128Mi", cpu: "200m" }
requests: { memory: "128Mi", cpu: "200m" }
limits: { memory: "512Mi", cpu: "700m" }