Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable zstd in ingress controller #13

Open
rthamrin opened this issue May 8, 2022 · 1 comment
Open

How to enable zstd in ingress controller #13

rthamrin opened this issue May 8, 2022 · 1 comment

Comments

@rthamrin
Copy link

rthamrin commented May 8, 2022

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 rthamrin changed the title How to enable gzip in ingress controller How to enable zstd in ingress controller May 8, 2022
@jason-x-xu jason-x-xu mentioned this issue Jul 31, 2023
@tokers
Copy link
Owner

tokers commented Apr 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants