feat: dodaj Kubernetes manifeste za FastAPI + Postgres

This commit is contained in:
2026-05-19 10:36:57 +02:00
parent c7c4e1023c
commit cb15d1441d
9 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fastapi-api-ingress
namespace: student-<vas-username>
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
rules:
- host: <vas-username>.fpmoz.sum.ba # zamijenite!
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: fastapi-api-service
port:
number: 80
tls:
- hosts:
- <vas-username>.fpmoz.sum.ba
secretName: fastapi-api-tls