init: FastAPI priprema-za-kolokvij + k8s manifesti (monorepo)

This commit is contained in:
2026-05-26 10:32:01 +02:00
parent ff8a850ae9
commit e1cd23769d
7 changed files with 101 additions and 0 deletions

13
k8s/service.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: priprema-svc
namespace: student-nikolahrkac
spec:
selector:
app: priprema-za-kolokvij # spaja Service s Podovima koji imaju ovaj label
ports:
- port: 80 # port koji Service eksponira (Ingress ce slati ovdje)
targetPort: 8000 # port containera (uvicorn slusa na 8000)
protocol: TCP
type: ClusterIP # samo unutar K8s clustera — Ingress rjesava vanjski pristup