Annotate ingress resource with http method?
15:14 14 Aug 2026

im trying to make ingress resources that map to this nginx conf https://github.com/LemmyNet/lemmy/blob/main/docker/nginx.conf#L38-L49

the header matching is fine but its looking like i cant vary which backend haproxy-ingress routes to based on the http method. Ive had a look over the docs, and the header annotations are working eg

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: lemmy-ingress-backend
  annotations:
    kubernetes.io/ingress.allow-http: "false"
    ingress.kubernetes.io/ssl-redirect: "true"
    haproxy-ingress.github.io/http-header-match: "Accept: application/activity+json"
    haproxy-ingress.github.io/http-header-match: "Accept: application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""

spec:
   ...

i know i can spin up an nginx in my pod but thought i would check first to see if my assumption is correct

haproxy-ingress