-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress.yaml
29 lines (29 loc) · 874 Bytes
/
ingress.yaml
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
# ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: employee-app-ingress
namespace: employee-app
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, DELETE, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization"
spec:
rules:
- host: employee-app.your-domain.com # Replace with your domain
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: frontend-service
port:
number: 80
- path: /employees
pathType: Prefix
backend:
service:
name: backend-service
port:
number: 8080