--- 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