cpu increase
This commit is contained in:
@@ -2,16 +2,16 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: moj-servis
|
name: moj-servis
|
||||||
namespace: student-ivanivso7 # Provjeri da ovdje ne piše VAS_KORISNIK
|
namespace: student-ivanivso7
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: moj-servis # OVO JE NEDOSTAJALO
|
app: moj-servis
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: moj-servis # OVO MORA BITI ISTO KAO SELECTOR
|
app: moj-servis
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: moj-servis
|
- name: moj-servis
|
||||||
@@ -20,12 +20,12 @@ spec:
|
|||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "10m"
|
cpu: "50m" # Povećano sa 10m na 50m
|
||||||
memory: "32Mi"
|
memory: "64Mi" # Povećano sa 32Mi na 64Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: "200m"
|
cpu: "300m" # Povećano sa 200m na 300m
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
livenessProbe: # OVDJE TI JE FALIO "HANDLER TYPE"
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 8000
|
port: 8000
|
||||||
|
|||||||
Reference in New Issue
Block a user