Configuration#
ANIC is configured by modifying the parameters of the ConfigMap
and Annotation
:
$ kubectl apply -f - <<EOF
kind: ConfigMap
apiVersion: v1
metadata:
name: angie-config
namespace: angie-ingress
data:
proxy-connect-timeout: "10s"
proxy-read-timeout: "10s"
client-max-body-size: "2m"
EOF
Parameters of the Ingress Controller
#
|
Specifies the address that is displayed in the status of the Ingress resource.
It takes precedence over the command line argument |
General Parameters#
Note
For all parameters of type boolean
, the valid pairs of values are true
/false
, t
/f
, on
/off
, and
1
/0
. Case does not matter.
Parameter |
Description |
Default |
---|---|---|
|
Sets the value of proxy_connect_timeout and grpc_connect_timeout. |
|
|
Sets the value of proxy_read_timeout and grpc_read_timeout |
|
|
Sets the value of proxy_send_timeout and grpc_send_timeout |
|
|
Sets the value of client_max_body_size |
|
|
Enables or disables buffering of the response from the proxied server |
|
|
Sets the value of proxy_buffers |
Depends on the platform |
|
Sets the value of proxy_buffer_size and grpc_buffer_size |
Depends on the platform |
|
Sets the value of proxy_max_temp_file_size |
|
|
Sets the value of set_real_ip_from |
None |
|
Sets the value of real_ip_header |
|
|
Enables or disables real_ip_recursive |
|
|
Configures the response from the default server that intercepts
client requests if no resource |
HTTP 404 error page |
|
Enables or disables server_tokens |
|
|
Sets the value of worker_processes |
|
|
Sets the value of worker_rlimit_nofile |
None |
|
Sets the value of worker_connections |
|
|
Sets the value of worker_cpu_affinity |
None |
|
Sets the value of worker_shutdown_timeout |
None |
|
Sets the value of server_names_hash_bucket_size |
|
|
Sets the value of server_names_hash_max_size |
|
|
Sets the value of map_hash_bucket_size |
|
|
Sets the value of map_hash_max_size |
|
|
Sets the DNS resolver value |
None |
|
Enables or disables the resolution of IPv6 addresses |
|
|
Allows overriding the DNS record caching duration |
None |
|
Sets the value of resolver_timeout |
|
|
Sets the value of keepalive_timeout |
|
|
Sets the value of keepalive_requests |
|
|
Sets the value of variables_hash_bucket_size |
|
|
Sets the value of variables_hash_max_size |
|
Logging Parameters#
Parameter |
Description |
Default |
---|---|---|
|
Defines the global value for the error_log level and can take one of the following values: debug, info, notice, warn, error, crit, alert, or emerg |
|
|
Disables access_log |
|
|
Disables access_log for the default service |
|
|
Sets the common log format. For
convenience, multiple lines can be used, separated by |
None |
|
Allows specifying character escaping
as |
|
|
Sets the stream log format for
TCP, UDP, and TLS traffic. For convenience, multiple lines can be used,
separated by |
None |
|
Allows specifying character escaping as |
|
Managing URIs and Headers in Requests#
|
The value of one proxy_hide_header or multiple |
|
The value of one proxy_pass_header or multiple |
Protocols#
Upstreams#
Parameter |
Description |
Default |
---|---|---|
|
Sets the value of max_fails for the server |
|
|
Sets the name and size of the shared memory zone |
None |
|
Sets the value of fail_timeout for the server |
|
|
Enables connection caching for the upstream server group |
None |
Custom Templates#
|
Inserts a custom configuration snippet into the main context |
|
Inserts a custom configuration snippet into the http context |
|
Inserts a custom configuration snippet into the location context |
|
Inserts a custom configuration snippet into the server context |
|
Inserts a custom configuration snippet into the stream context |
|
Defines the main template for the primary settings of Angie. By default, the template is read from a file in the container |
|
Defines the settings template for the Ingress resource. By default, the template is read from a file in the container |
|
Defines the settings template for the VirtualServer. By default, the template is read from a file in the container |