Fix documentation (#2902)
This commit is contained in:
parent
7f7f59df79
commit
a68820808a
3 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,8 @@ The next example shows how to expose the service `example-go` running in the nam
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: tcp-configmap-example
|
name: tcp-services
|
||||||
|
namespace: ingress-nginx
|
||||||
data:
|
data:
|
||||||
9000: "default/example-go:8080"
|
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
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: udp-configmap-example
|
name: udp-services
|
||||||
|
namespace: ingress-nginx
|
||||||
data:
|
data:
|
||||||
53: "kube-system/kube-dns:53"
|
53: "kube-system/kube-dns:53"
|
||||||
```
|
```
|
||||||
|
|
|
@ -120,7 +120,7 @@ The following table shows a configuration option's name, type, and the default v
|
||||||
|[http-snippet](#http-snippet)|string|""|
|
|[http-snippet](#http-snippet)|string|""|
|
||||||
|[server-snippet](#server-snippet)|string|""|
|
|[server-snippet](#server-snippet)|string|""|
|
||||||
|[location-snippet](#location-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-body-size](#proxy-body-size)|string|"1m"|
|
||||||
|[proxy-connect-timeout](#proxy-connect-timeout)|int|5|
|
|[proxy-connect-timeout](#proxy-connect-timeout)|int|5|
|
||||||
|[proxy-read-timeout](#proxy-read-timeout)|int|60|
|
|[proxy-read-timeout](#proxy-read-timeout)|int|60|
|
||||||
|
|
|
@ -509,8 +509,6 @@ http {
|
||||||
# default server, used for NGINX healthcheck and access to nginx stats
|
# default server, used for NGINX healthcheck and access to nginx stats
|
||||||
server {
|
server {
|
||||||
# Use the port {{ $all.ListenPorts.Status }} (random value just to avoid known ports) as default port for nginx.
|
# 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 }};
|
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 }}
|
{{ if $IsIPV6Enabled }}listen [::1]:{{ $all.ListenPorts.Status }} default_server {{ if $all.Cfg.ReusePort }}reuseport{{ end }} backlog={{ $all.BacklogSize }};{{ end }}
|
||||||
set $proxy_upstream_name "-";
|
set $proxy_upstream_name "-";
|
||||||
|
|
Loading…
Reference in a new issue