diff --git a/docs/user-guide/exposing-tcp-udp-services.md b/docs/user-guide/exposing-tcp-udp-services.md index 4c47055d9..b5b166610 100644 --- a/docs/user-guide/exposing-tcp-udp-services.md +++ b/docs/user-guide/exposing-tcp-udp-services.md @@ -12,7 +12,8 @@ The next example shows how to expose the service `example-go` running in the nam apiVersion: v1 kind: ConfigMap metadata: - name: tcp-configmap-example + name: tcp-services + namespace: ingress-nginx data: 9000: "default/example-go:8080" ``` @@ -24,7 +25,8 @@ The next example shows how to expose the service `kube-dns` running in the names apiVersion: v1 kind: ConfigMap metadata: - name: udp-configmap-example + name: udp-services + namespace: ingress-nginx data:  53: "kube-system/kube-dns:53" ``` diff --git a/docs/user-guide/nginx-configuration/configmap.md b/docs/user-guide/nginx-configuration/configmap.md index dc4e587a0..d592f594a 100644 --- a/docs/user-guide/nginx-configuration/configmap.md +++ b/docs/user-guide/nginx-configuration/configmap.md @@ -120,7 +120,7 @@ The following table shows a configuration option's name, type, and the default v |[http-snippet](#http-snippet)|string|""| |[server-snippet](#server-snippet)|string|""| |[location-snippet](#location-snippet)|string|""| -|[custom-http-errors](#custom-http-errors)|[]int]|[]int{}| +|[custom-http-errors](#custom-http-errors)|[]int|[]int{}| |[proxy-body-size](#proxy-body-size)|string|"1m"| |[proxy-connect-timeout](#proxy-connect-timeout)|int|5| |[proxy-read-timeout](#proxy-read-timeout)|int|60| diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index bd408a67f..61e7bd7e8 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -509,8 +509,6 @@ http { # default server, used for NGINX healthcheck and access to nginx stats server { # Use the port {{ $all.ListenPorts.Status }} (random value just to avoid known ports) as default port for nginx. - # Changing this value requires a change in: - # https://github.com/kubernetes/ingress-nginx/blob/master/controllers/nginx/pkg/cmd/controller/nginx.go listen 127.0.0.1:{{ $all.ListenPorts.Status }} default_server {{ if $all.Cfg.ReusePort }}reuseport{{ end }} backlog={{ $all.BacklogSize }}; {{ if $IsIPV6Enabled }}listen [::1]:{{ $all.ListenPorts.Status }} default_server {{ if $all.Cfg.ReusePort }}reuseport{{ end }} backlog={{ $all.BacklogSize }};{{ end }} set $proxy_upstream_name "-";