IngressRoute with proxyProtocol

I would like to know if it is possible to add ProxyProtocol in the spec -> entryPoints. I tried but the deploy is not successful, resulting in error.

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: nginxhttps
  namespace: default
spec:
  entryPoints:
    - websecure
  routes:
  - kind: Rule
    match: Host(`*`)
    kind: Rule
    services:
    - kind: Service
      name: mynginx
      port: 80

Hello @Albert,

Host(`*`) is not a valid match (you should have an error log showing that to you). Can you try with HostRegexp(`{host}`).

Hope it helps !

Ok. That was my mistake as I try to remove my fqdn.

What I want to do is something like this

spec:
  entryPoints:
    - websecure
      proxyProtocol:
        insecure: true

Which results in error during 'kubectl apply What is the correct way?

This setting is set on the static configuration. So, you cannot set it on this IngressRoute

Thank you. so the correct way is to add the proxyProtocol in the additionalArguments: of the helm chart

1 Like