zstd-nginx-module icon indicating copy to clipboard operation
zstd-nginx-module copied to clipboard

How to enable zstd in ingress controller

Open rthamrin opened this issue 3 years ago • 1 comments

I really want to enable the zstd module to my nginx_ingress_controller. that I downloaded and installed from kubernetes/nginx_ingress. I doubt what step I took and the results failed me.

what I did:

  1. download your dynamic script in one group directory, and put all the files together in dir /my directory/ingress nginx/zstd-nginx-module/ config
    ngx_http_zstd_static_module.c

  2. I edited my daemonset/deployment file and add extra line to load the file. - --add-module=/my directory/ingress nginx/zstd-nginx-module/

  3. I log in to my ingress kubectl exec -it ingress-nginx-controller-name -n namespace -- sh -ls

  4. after login inside one of the nginx-controller , I could check the Nginx modules, and it is located inside the container

/etc/nginx/modules$ 
ngx_http_auth_digest_module.so    ngx_http_brotli_static_module.so  ngx_http_influxdb_module.so       ngx_http_opentracing_module.so

I did not find the zstd module and all the extension file is .so

  1. I edited my configmap data:

allow-snippet-annotations: "true"

i tried this , it is acceptable zstd: "on" zstd_comp_level: "3" zstd_min_length: "256"

but this code is not working zstd on; zstd_comp_level 3;

I belive I dis big mistake and I don't understand enough, thank you for the help, I hope you got my point

rthamrin avatar May 08 '22 13:05 rthamrin

@rthamrin Did you solve this? Did you check the so file mounting in the container?

tokers avatar Apr 22 '24 08:04 tokers