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

feat(k8s): doc autoheal feature #3027

Merged
merged 7 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
meta:
title: Using the Kubernetes autoheal feature
bene2k1 marked this conversation as resolved.
Show resolved Hide resolved
description: This page explains the concept of Kubernetes autoheal
content:
h1: Using the Kubernetes autoheal feature
paragraph: This page explains the concept of Kubernetes autoheal
tags: kubernetes kapsule autoheal
dates:
validation: 2024-04-04
posted: 2024-04-04
categories:
- kubernetes
---

The Kubernetes autoheal feature is designed to automatically detect and recover from failures within a Kubernetes cluster.
It provides a proactive approach to maintaining the health and availability of nodes of the cluster by automatically addressing issues that may arise.
bene2k1 marked this conversation as resolved.
Show resolved Hide resolved
The autoheal feature periodically checks the health of the Kubernetes cluster and takes action based on predefined conditions.

You can enable the autoheal feature to ensure that your applications remain operational even in the event of failures. Some common use cases include:

- **Enhanced reliability**: By automatically recovering from failures, autoheal improves the reliability of nodes forming the Kubernetes cluster.
- **Fault tolerance**: It enhances the fault tolerance of the Kubernetes cluster by detecting and addressing issues such as pod crashes or node failures.
bene2k1 marked this conversation as resolved.
Show resolved Hide resolved
- **Reduced downtime**: By automatically detecting and recovering from failures, autoheal reduces downtime and minimizes the impact on application performance.
- **Operational efficiency**: It reduces the need for manual intervention in addressing failures, thereby improving operational efficiency.

## Autoheal process

Autoheal is triggered by the shoot-manager every five (5) minutes. If the shoot-manager sees a node in `notReady` status for more than 15 minutes, it will reboot it (once only), and after 30 minutes it will be replaced.
bene2k1 marked this conversation as resolved.
Show resolved Hide resolved

## When to enable or disable autoheal

### When to enable autoheal

It is advised to enable autoheal in production environments where maintaining high availability and minimizing downtime is critical.

### When to disable autoheal

There may be scenarios where autoheal should be disabled:
bene2k1 marked this conversation as resolved.
Show resolved Hide resolved

- **Testing environments**: In testing or development environments where failures can be tolerated for troubleshooting purposes.
- **Custom recovery mechanisms**: If you have configured custom recovery mechanisms that handle failures more effectively than the autoheal feature.
bene2k1 marked this conversation as resolved.
Show resolved Hide resolved

<Message type="important">
We recommend that you carefully consider what enabling or disabling autoheal involves, based on your specific use case requirements and operational considerations.
</Message>
4 changes: 4 additions & 0 deletions menu/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,10 @@
"label": "Using Load Balancer annotations",
"slug": "using-load-balancer-annotations"
},
{
"label": "Using the Kubernetes autoheal feature",
"slug": "using-kubernetes-autoheal-feature"
},
{
"label": "Wildcard DNS routing",
"slug": "wildcard-dns"
Expand Down
Loading