ingress-nginx icon indicating copy to clipboard operation
ingress-nginx copied to clipboard

keep-alive ConfigMap option must be integer number of seconds

Open rittneje opened this issue 3 years ago • 3 comments

At present the documentation for keep-alive is rather vague as to its type or unit.

Sets the time during which a keep-alive client connection will stay open on the server side. The zero value disables keep-alive client connections.

In fact the nginx documentation it references for keepalive_timeout shows it with a unit suffix, as in Go's time.ParseDuration.

Default: keepalive_timeout 75s;

From the source code of ingress-nginx, apparently it expects keep-alive to always be an integer number of seconds.

https://github.com/kubernetes/ingress-nginx/blob/f44e79002176a0d6585a22334d72d74f2e936563/rootfs/etc/nginx/template/nginx.tmpl#L288

The ingress-nginx documentation needs to be amended to state this explicitly.

rittneje avatar Aug 09 '22 12:08 rittneje

@rittneje: This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 09 '22 12:08 k8s-ci-robot

@rittneje I agree keep-alive option must be an integer number and same thing is mentioned in https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#keep-alive keep-alive

It is also mention that even integers will be written as string in configmap important

kundan2707 avatar Aug 10 '22 06:08 kundan2707

/remove-kind bug

kundan2707 avatar Aug 10 '22 06:08 kundan2707

/close

kundan2707 avatar Aug 14 '22 17:08 kundan2707

@kundan2707: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 14 '22 17:08 k8s-ci-robot