Skip to content

scheduler: livenessProbe redundant exec leads to false-positive result #21994

Description

@Wilderone

Official Helm Chart version

1.4.0 (latest released)

Apache Airflow version

2.2.4 (latest released)

Kubernetes Version

v1.21.5-eks-bc4871b

Helm Chart configuration

No response

Docker Image customisations

No response

What happened

Current livenessProbe in scheduler returns 0 exit code even if execution failed, this leads to container won't restart if it necessary.
I see two ways to fix this:

  1. Simply remove - exec from livenessProbe
  2. Move livenessProbe to values for customisation by client

What you expected to happen

Restart container if livenessProve failed

How to reproduce

Fastest way - change livenessProbe to:

- sh
- c
- exec
- cat /123

You will see no errors in pod describe

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions