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