70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: traceworks
|
|
namespace: traceworks
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
# Add custom headers for geo detection
|
|
traefik.ingress.kubernetes.io/request-headers: "X-Forwarded-Host:{host},X-Country-Code:FR"
|
|
spec:
|
|
ingressClassName: traefik
|
|
tls:
|
|
- hosts:
|
|
- traceworks.in
|
|
- www.traceworks.in
|
|
- traceworks.eu
|
|
- www.traceworks.eu
|
|
- learn.traceworks.in
|
|
secretName: traceworks-tls
|
|
rules:
|
|
- host: learn.traceworks.in
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: traceworks-frontend
|
|
port:
|
|
number: 80
|
|
- host: traceworks.in
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: traceworks-frontend
|
|
port:
|
|
number: 80
|
|
- host: www.traceworks.in
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: traceworks-frontend
|
|
port:
|
|
number: 80
|
|
- host: traceworks.eu
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: traceworks-frontend
|
|
port:
|
|
number: 80
|
|
- host: www.traceworks.eu
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: traceworks-frontend
|
|
port:
|
|
number: 80
|