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

Allow configuring fluent bit daemonset's termination grace period seconds by CRD #1189

Closed
MaulinS-Pangea opened this issue May 29, 2024 · 0 comments · Fixed by #1204
Closed

Comments

@MaulinS-Pangea
Copy link

Is your feature request related to a problem? Please describe.

The fluentbits.fluentbit.fluent.io defines the following attributes:

spec.initContainers[].livenessProbe.terminationGracePeriodSeconds
spec.initContainers[].readinessProbe.terminationGracePeriodSeconds
spec.initContainers[].startupProbe.terminationGracePeriodSeconds
spec.livenessProbe.terminationGracePeriodSeconds
spec.readinessProbe.terminationGracePeriodSeconds

With the following description:

terminationGracePeriodSeconds:
  description: Optional duration in seconds the pod needs to terminate
    gracefully upon probe failure. The grace period is the duration
    in seconds after the processes running in the pod are sent a
    termination signal and the time when the processes are forcibly
    halted with a kill signal. Set this value longer than the expected
    cleanup time for your process. If this value is nil, the pod's
    terminationGracePeriodSeconds will be used. Otherwise, this
    value overrides the value provided by the pod spec. Value must
    be non-negative integer. The value zero indicates stop immediately
    via the kill signal (no opportunity to shut down). This is a
    beta field and requires enabling ProbeTerminationGracePeriod
    feature gate. Minimum value is 1. **spec.terminationGracePeriodSeconds
    is used if unset.**
  format: int64
  type: integer

It says that spec.terminationGracePeriodSeconds is used if unset. However the fluent bit daemonset uses the default terminationGracePeriodSeconds of 30s and spec.terminationGracePeriodSeconds is not a valid property in the CRD.

Describe the solution you'd like

Add spec.terminationGracePeriodSeconds in fluentbits.fluentbit.fluent.io to configure daemonset's termination grace period seconds.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant