Traefik v2 Helm chart: enable compression

Hi. I can't figure out how to enable gzip compression for my service in kubernetes. I'm installing traefik via helm chart. Any hint? Thanks

Thanks for your interest in Traefik!

Did you check already the documentation?

# Enable gzip compression
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: test-compress
spec:
  compress: {}

yeah, but how is it possible to install it via helm chart w/o manual steps?

It's recommended to manage your dynamic configuration outside of the Helm Chart.

For testing or specific env, you may be interested to use extraObjects.

So I have applied this yaml to both namespaces - where my service lives and inside traefiks'. Nothing changed. Either documentation is incomplete... or idk...

for future generations:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: backend
spec:
  entryPoints:
    - web
    - websecure
  routes:
  - match: Host(`{{ .Values.backend.ingress.host }}`) && PathPrefix(`{{ .Values.backend.ingress.pathPrefix }}`)
    kind: Rule
    middlewares:
      - name: test-compress
        namespace: {{.Release.Namespace}}
    services:
    - name: backend
      port: {{ .Values.backend.service.port }}