I have a very long configuration for nginx ingress
that I have to specify using nginx.ingress.kubernetes.io/server-snippet
annotation.
nginx.ingress.kubernetes.io/server-snippet: |
gzip on;
gzip_types text/plain application/xml text/css application/javascript;
gzip_min_length 1000;
... about 100 more lines ...
It is a little ugly to mix resource definition files with nginx configuration, and also some configurations are shared among multiple ingresses. So I want to know, is there any way to load the configuration from a file? I'm using kustomize
.