cpu increase

This commit is contained in:
Ivan Filipovic
2026-05-04 21:14:28 +02:00
parent 5fcc89df99
commit 6720f31202

View File

@@ -4,7 +4,7 @@ metadata:
name: moj-servis name: moj-servis
namespace: student-ivanivso7 namespace: student-ivanivso7
spec: spec:
replicas: 1 replicas: 2 # POVEĆANO: Sada imaš dva radnika umjesto jednog
selector: selector:
matchLabels: matchLabels:
app: moj-servis app: moj-servis
@@ -20,18 +20,18 @@ spec:
- containerPort: 8000 - containerPort: 8000
resources: resources:
requests: requests:
cpu: "100m" # Povećano sa 50m na 100m cpu: "100m"
memory: "128Mi" # Povećano sa 64Mi na 128Mi memory: "128Mi"
limits: limits:
cpu: "500m" # Povećano sa 300m na 500m cpu: "500m"
memory: "256Mi" # Povećano sa 128Mi na 256Mi memory: "256Mi"
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /health path: /health
port: 8000 port: 8000
initialDelaySeconds: 15 initialDelaySeconds: 15
periodSeconds: 20 periodSeconds: 20
failureThreshold: 5 # dajemo 5 sansi prije resetovanja failureThreshold: 5
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /health