-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Labels
Description
Describe the bug
In version 1.5.0 we were able to pass custom NGINX configuration blocks as volume mounts to the helm chart using ExtraVolumes
and ExtraVolumeMounts
variables. But they don't seem to be working in version 2.x although the variables exist in the helm chart. (Value not expected error while syncing the helm chart).
Question 1: Is this a bug which can be fixed?
Question 2: Is there a better way of passing global Nginx Data Plane configurations such as the below:
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf-override
namespace: nginx-gateway
data:
nginx.conf: |2
load_module /usr/lib/nginx/modules/ngx_http_js_module.so;
include /etc/nginx/main-includes/*.conf;
worker_processes auto;
pid /var/run/nginx/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/mime.types;
js_import /usr/lib/nginx/modules/njs/httpmatches.js;
default_type application/octet-stream;
underscores_in_headers on;
large_client_header_buffers 4 16k;
proxy_headers_hash_bucket_size 512;
proxy_headers_hash_max_size 1024;
server_names_hash_bucket_size 256;
server_names_hash_max_size 1024;
variables_hash_bucket_size 512;
variables_hash_max_size 1024;
client_max_body_size 2M;
sendfile on;
tcp_nopush on;
server_tokens off;
server {
listen unix:/var/run/nginx/nginx-status.sock;
access_log off;
location /stub_status {
stub_status;
}
}
}
stream {
variables_hash_bucket_size 512;
variables_hash_max_size 1024;
map_hash_max_size 2048;
map_hash_bucket_size 256;
log_format stream-main '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time "$ssl_preread_server_name"';
access_log /dev/stdout stream-main;
include /etc/nginx/stream-conf.d/*.conf;
}
Below is the screenshot of the sync error:
Seems to be a miss on the values schema from when the data plane and gateway schemas have been split but not reflected correctly. Can we fix this?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done