feat: dodaj Kubernetes manifeste za FastAPI + Postgres

This commit is contained in:
2026-05-25 19:05:51 +02:00
parent eac5e79b38
commit 9a85e58f72
10 changed files with 11 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: fastapi-api
namespace: student-petracamber
namespace: student-PetraCamber
annotations:
argocd.argoproj.io/sync-wave: "1" # deploy NAKON baze
spec:

View File

@@ -2,13 +2,13 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fastapi-api-ingress
namespace: student-petracamber
namespace: student-PetraCamber
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
rules:
- host: petracamber.fpmoz.sum.ba # zamijenite!
- host: PetraCamber.fpmoz.sum.ba # zamijenite!
http:
paths:
- path: /
@@ -20,5 +20,5 @@ spec:
number: 80
tls:
- hosts:
- petracamber.fpmoz.sum.ba
- PetraCamber.fpmoz.sum.ba
secretName: fastapi-api-tls

View File

@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: fastapi-api-service
namespace: student-petracamber
namespace: student-PetraCamber
spec:
selector:
app: fastapi-api