39 lines
1008 B
YAML
39 lines
1008 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: moj-servis
|
|
namespace: student-ivanivso7 # Provjeri da ovdje ne piše VAS_KORISNIK
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: moj-servis # OVO JE NEDOSTAJALO
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: moj-servis # OVO MORA BITI ISTO KAO SELECTOR
|
|
spec:
|
|
containers:
|
|
- name: moj-servis
|
|
image: git.fpmoz.sum.ba/ivanivso7/moj-servis:1.0
|
|
ports:
|
|
- containerPort: 8000
|
|
resources:
|
|
requests:
|
|
cpu: "10m"
|
|
memory: "32Mi"
|
|
limits:
|
|
cpu: "200m"
|
|
memory: "128Mi"
|
|
livenessProbe: # OVDJE TI JE FALIO "HANDLER TYPE"
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 15
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10 |