You are looking at the documentation of a prior release. To read the documentation of the latest release, please visit here.
Voyager Supports all valid options for defaults section of HAProxy config. You can provide these options using a json encoded map in Ingress annotaiotns liek below:
ingress.appscode.com/default-option: '{"http-keep-alive": "true", "dontlognull": "true", "clitcpka": "false"}'
This will be appended in the defaults section of HAProxy as:
option http-keep-alive
option dontlognull
no option clitcpka
Ingress Example:
apiVersion: voyager.appscode.com/v1beta1
kind: Ingress
metadata:
name: test-ingress
namespace: default
annotations:
ingress.appscode.com/default-options: '{"http-keep-alive": "true", "dontlognull": "true", "clitcpka": "false"}'
spec:
backend:
serviceName: test-service
servicePort: '80'
rules:
- host: appscode.example.com
http:
paths:
- backend:
serviceName: test-service
servicePort: '80'
This ingress will generate a HAProxy template with provided timeouts. like
defaults
log global
option http-keep-alive
option dontlognull
no option clitcpka