diff --git a/k8s/moj-servis/deployment.yaml b/k8s/moj-servis/deployment.yaml index c143942..6528e38 100644 --- a/k8s/moj-servis/deployment.yaml +++ b/k8s/moj-servis/deployment.yaml @@ -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" } \ No newline at end of file + requests: { memory: "128Mi", cpu: "200m" } + limits: { memory: "512Mi", cpu: "700m" } \ No newline at end of file