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

[Operational Awareness] Review the Kubernetes readiness probe and liveness probe of KIM #391

Open
2 tasks
tobiscr opened this issue Sep 18, 2024 · 0 comments
Open
2 tasks
Labels
area/control-plane Related to all activities around Kyma Control Plane kind/feature Categorizes issue or PR as related to a new feature.

Comments

@tobiscr
Copy link
Contributor

tobiscr commented Sep 18, 2024

Description

We have ensure the KIM pod exposes a Readiness probe (system ready for taking over load) and a Liveness probe (system unhealthy and needs restart).

The Kubebuilder framework provides already pre-implemented probes (see https://book.kubebuilder.io/cronjob-tutorial/empty-main). But we have to ensure their implementation is suitable for KIM's context and giving a proper indication about KIMs internal readiness/health state.

AC:

  • KIM supports a Readiness probe which gives a clear indication to Kubernetes when the pod is ready to process requests. Requirements to be ready:

    • Configuration validation successfully finished
    • Readiness probe should indicate ok when bootstrap is completed
  • KIM supports a Liveness probe which indicates the internal health state of KIM to Kubernetes (and could trigger a restart of the pod whenever needed). Requirements for healthiness:

    • Liveness probe should always indicating ok, KIM has no special case which needs to be monitored and should trigger a restart of the pod (see screenshot of current implementation)

      Image

Reasons

Support Kubernetes mechanism for indicating the health and readiness state of a pod.

Attachments

@tobiscr tobiscr added kind/feature Categorizes issue or PR as related to a new feature. area/control-plane Related to all activities around Kyma Control Plane labels Sep 18, 2024
@tobiscr tobiscr changed the title Operational Awareness: Review the Kubernetes readiness probe and liveness probe of KIM [Operational Awareness] Review the Kubernetes readiness probe and liveness probe of KIM Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Related to all activities around Kyma Control Plane kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant