-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient-ingress.yaml
More file actions
55 lines (55 loc) · 1.68 KB
/
client-ingress.yaml
File metadata and controls
55 lines (55 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: study-mate-client-ingress
namespace: study-mate
annotations:
# SSL/TLS configuration
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
# CORS configuration for frontend
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization"
nginx.ingress.kubernetes.io/cors-expose-headers: "Content-Length,Content-Range"
spec:
ingressClassName: nginx
tls:
- hosts:
- study-mate.student.k8s.aet.cit.tum.de
secretName: study-mate-client-tls
rules:
- host: study-mate.student.k8s.aet.cit.tum.de
http:
paths:
# API Routes - Backend Services
- path: /api/auth
pathType: Prefix
backend:
service:
name: study-mate-auth-service
port:
number: 8086
- path: /api/documents
pathType: Prefix
backend:
service:
name: study-mate-document-service
port:
number: 8084
- path: /api/genai
pathType: Prefix
backend:
service:
name: study-mate-genai-service
port:
number: 8085
# Frontend - React Client (fallback for all other paths)
- path: /
pathType: Prefix
backend:
service:
name: client
port:
number: 80