Add initial project structure with Dockerfile, Kubernetes manifests, and FastAPI application

This commit is contained in:
2026-06-09 10:14:55 +02:00
commit a2b21cc9d3
8 changed files with 121 additions and 0 deletions

37
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,37 @@
# TODO: napiši Deployment
# Ime: k2-app | Namespace: kolokvij2-IME-PREZIME
# Replicas: 2 | Image: git.fpmoz.sum.ba/IME-PREZIME/k2-app:1.0
# containerPort: 8000 | env AUTOR=IME-PREZIME
apiVersion: apps/v1
kind: Deployment
metadata:
name: k2-app
namespace: kolokvij2-fsusak03
spec:
replicas: 2
selector:
matchLabels:
app: k2-app
template:
metadata:
labels:
app: k2-app
spec:
containers:
- name: k2-app
image: git.fpmoz.sum.ba/fsusak03/k2-app:1.0
ports:
- containerPort: 8000
env:
- name: AUTOR
value: "fsusak03"
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "200m"