This commit is contained in:
ITO Mac
2026-05-04 16:10:31 +02:00
parent 00cac53ff3
commit 739f70b440
7 changed files with 221 additions and 0 deletions

37
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: zadaca-deployment
namespace: student-blazp04
spec:
replicas: 1
selector:
matchLabels:
app: zadaca
template:
metadata:
labels:
app: zadaca
spec:
containers:
- name: zadaca
image: git.fpmoz.sum.ba/blazp04/zadaca:latest
ports:
- containerPort: 8000
envFrom:
- configMapRef:
name: zadaca-config
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 3
periodSeconds: 5
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "200m"