ntwl/spacerace/spacerace.ingress.yaml
2025-04-07 23:08:47 +10:00

26 lines
574 B
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spacerace-api
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
haproxy.org/path-rewrite: "/api(/)?(.*) /$2"
spec:
ingressClassName: haproxy
tls:
- hosts:
- spacerace.strix.systems
secretName: spacerace-strix-systems-tls
rules:
- host: spacerace.strix.systems
http:
paths:
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: spacerace-api
port:
number: 80