Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to increase controllers post-shutdown-grace-period parameter value in helm? #9125

Closed
sokoow opened this issue Oct 5, 2022 · 8 comments
Labels
kind/support Categorizes issue or PR as a support question. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@sokoow
Copy link

sokoow commented Oct 5, 2022

What happened:
I'm trying to get more than 10 seconds of grace when shutdown is invoked. I can see that there's post-shutdown-grace-period parameter, but helm chart doesn't seem to be able to change it (I may be wrong).

I thought #8095 and #8143 might help, but not much info over there either

What you expected to happen:

Find a way to change this parameter in helm chart's values.yaml

NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.): v1.3.0
Kubernetes version (use kubectl version): 1.21.14-eks

@sokoow sokoow added the kind/bug Categorizes issue or PR as related to a bug. label Oct 5, 2022
@k8s-ci-robot
Copy link
Contributor

@sokoow: 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 k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority labels Oct 5, 2022
@kundan2707
Copy link
Contributor

@sokoow you can achieve graceful shutdown by adding following content in pod spec

spec:
  terminationGracePeriodSeconds: 600

@kundan2707
Copy link
Contributor

kundan2707 commented Oct 6, 2022

/remove-kind bug

@sokoow
Copy link
Author

sokoow commented Oct 6, 2022

@kundan2707 thanks for replying, but then what is this post-shutdown-grace-period parameter for and why it defaults to 10s?

@longwuyuan
Copy link
Contributor

/remove-kind bug
/kind support

@k8s-ci-robot k8s-ci-robot added kind/support Categorizes issue or PR as a support question. and removed kind/bug Categorizes issue or PR as related to a bug. labels Oct 6, 2022
@strongjz
Copy link
Member

postShutdownGracePeriod = flags.Int("post-shutdown-grace-period", 10, "Seconds to wait after the nginx process has stopped before controller exits.")

https://github.com/kubernetes/ingress-nginx/pull/8143/files

The option is there; I have also opened a new issue to make sure the documentation is updated #9214

If this does not fix the issue, please reopen the issue and comment. Thank you for pointing out this issue.

/close

@k8s-ci-robot
Copy link
Contributor

@strongjz: Closing this issue.

In response to this:

postShutdownGracePeriod = flags.Int("post-shutdown-grace-period", 10, "Seconds to wait after the nginx process has stopped before controller exits.")

https://github.com/kubernetes/ingress-nginx/pull/8143/files

The option is there; I have also opened a new issue to make sure the documentation is updated #9214

If this does not fix the issue, please reopen the issue and comment. Thank you for pointing out this issue.

/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.

@strongjz
Copy link
Member

I misread the ask, here is the Helm configuration extraArgs

https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/values.yaml#L180

 # -- Additional command line arguments to pass to nginx-ingress-controller
  # E.g. to specify the default SSL certificate you can use
  extraArgs: {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

5 participants