feat: dodaj Kubernetes manifeste za FastAPI + Postgres
This commit is contained in:
24
manifests/app/ingress.yaml
Normal file
24
manifests/app/ingress.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: fastapi-api-ingress
|
||||
namespace: student-vucicj
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
spec:
|
||||
rules:
|
||||
- host: student-vucicj.fpmoz.sum.ba # zamijenite!
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: fastapi-api-service
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- student-vucicj.fpmoz.sum.ba
|
||||
secretName: fastapi-api-tls
|
||||
Reference in New Issue
Block a user