tencent cloud

Tencent Kubernetes Engine

Node-Healing Description

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-10-23 16:19:17
Diterjemahkan oleh AI

Component Introduction

Node-Healing is a node self-healing component provided by TKE. It can automatically detect abnormal nodes in a cluster and perform automated repair operations based on predefined policies. When used together with Node Problem Detector (NPD), this component enables a complete closed loop from fault detection to automatic repair. Node-Healing supports self-healing policies for 40 fault types, covering kernel/system, resource pressure, service health, K8s component extension, and GPU monitoring faults, effectively improving cluster stability and availability.

Kubernetes Objects Deployed in a Cluster

Kubernetes Object Name
Type
Requesting Resources
Associated Namespace
node-healing-controller
Deployment
CPU: 100m
Memory: 128Mi
kube-system
node-healing
ServiceAccount
-
kube-system
node-healing-role
ClusterRole
-
-
node-healing-rolebinding
ClusterRoleBinding
-
-
machinehealingtemplates.node.healing.tke.cloud.tencent.com
CRD
-
-
nodehealers.node.healing.tke.cloud.tencent.com
CRD
-
-
healingtasks.node.healing.tke.cloud.tencent.com
CRD
-
-

Limits

Kubernetes version 1.18 or later is required.
You need to install the Node Problem Detector (NPD) component first.
Only native nodes are supported. Self-healing operations are not supported for super nodes, third-party nodes (registered nodes), or regular nodes.

Component Permissions

Permission Description

The Node-Healing component requires permissions to access node status, create events, and manage CRD resources to detect node faults and perform self-healing operations.

Permission Scenarios

Permission Object
Operation Permissions
Purpose
nodes
get, list, watch, patch, update
Obtain node information, listen for node status changes, and update node tags and taints.
nodes/status
patch, update
Modify node status (Condition).
events
create, update, patch
Send events to notify the cluster.
pods
get, list, watch, delete
Obtain Pod information and evict Pods.
pods/eviction
create
Perform Pod eviction.
machinehealingtemplates
get, list, watch, create, update, patch, delete
Manage self-healing templates.
nodehealers
get, list, watch, create, update, patch, delete
Manage self-healing policies.
healingtasks
get, list, watch, create, update, patch, delete
Manage self-healing tasks.

Permission Definition

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: node-healing-role
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch", "patch", "update"]
- apiGroups: [""]
resources: ["nodes/status"]
verbs: ["patch", "update"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "update", "patch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch", "delete"]
- apiGroups: [""]
resources: ["pods/eviction"]
verbs: ["create"]
- apiGroups: ["node.healing.tke.cloud.tencent.com"]
resources: ["machinehealingtemplates", "nodehealers", "healingtasks"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["node.healing.tke.cloud.tencent.com"]
resources: ["healingtasks/status", "nodehealers/status"]
verbs: ["get", "update", "patch"]

Usage

Installing Components

1. Log in to the TKE console and select Cluster in the left sidebar.
2. On the cluster management page, click the target cluster ID to go to the cluster details page.
3. In the left sidebar, choose Component Management to go to the Component List page.
4. On the Component List page, click Create. On the Create Component page, select Node-Healing.
5. Click Complete.
Attention:
Before installing Node-Healing, ensure that the Node Problem Detector (NPD) component is installed.
After the installation is complete, you need to create a NodeHealer resource to define the self-healing policy.

Configuring Self-Healing Policies

After the component is installed, you need to create a NodeHealer resource to define the self-healing policy:
apiVersion: node.healing.tke.cloud.tencent.com/v1
kind: NodeHealer
metadata:
name: cluster-node-healer
spec:
# Node Selector
nodeSelector:
matchLabels:
node-healing.tke.cloud.tencent.com/belong-to: cluster-node-healer
cloud.tencent.com/provider: tencentcloud

# Reference Self-Healing Template
machineHealingTemplate:
name: "default-healing-template"
kind: "MachineHealingTemplate"
apiVersion: "node.healing.tke.cloud.tencent.com/v1"

# Monitored Abnormal Conditions
unhealthyConditions:
- type: KernelDeadlock
enableCheck: true
enableHealing: true
durationTime: "5m"
priority: 100
- type: KubeletProblem
enableCheck: true
enableHealing: true
durationTime: "5m"
priority: 85

# Rate Limiting Policy
nodeHealingPolicy:
maxHealNodesPerDay: 10
maxHealNodesPerHour: 3
maxHealConcurrency: 2
minNodeCoolingMinutes: 60

Adding Tags to Nodes

# Add the belong-to tag to all native nodes
kubectl label node -l node-healing.tke.cloud.tencent.com/belong-to=cluster-node-healer

Supported Failure Types

Node-Healing supports self-healing policies for 40 Condition types. When configuring unhealthyConditions, specify one of the following fault type names in the type field:

Kernel/System (7 Types)

Fault Type
Description
Self-Healing Policy
KernelDeadlock
Kernel deadlock
Complete process
ReadonlyFilesystem
The file system is read-only.
Isolate + drain + recover
StuckProcess
Stuck process
Isolate + drain + recover
ProcessProblem
Large number of processes in D state
Isolate + drain + recover
XFSError
XFS filesystem error
Isolate + drain + recover
DiskReadOnly
Disk read-only
Isolate + drain + recover
NetDeviceProblem
NIC hardware failure
Isolate + drain only

Resource Pressure (7 Types)

Fault Type
Description
Self-Healing Policy
CustomPIDPressure
Custom PID pressure
Isolate + drain + recover
FDPressure
File descriptor pressure
Isolate + drain + recover
ThreadPressure
Thread pressure
Isolate + drain + recover
SystemLoadProblem
System load problem
Isolate + drain + recover
OverlayDiskPressure
Overlay disk pressure
Isolate + drain + recover
FDProblem
FD leak
Isolate + drain + recover
ConntrackProblem
Conntrack table full
Isolate + drain + recover

Service Health (8 Types)

Fault Type
Description
Self-Healing Policy
ContainerdProblem
Containerd service errors
Complete process
ContainerRuntimeInterfaceUnhealthy
Unhealthy CRI
Complete process
ContainerRuntimeUnhealthy
Unhealthy runtime
Complete process
ContainerdRuntimeUnhealthy
Unhealthy Containerd runtime
Complete process
DockerdProblem
Docker service errors
Complete process
KubeletProblem
Kubelet service errors
Complete process
HasGhostContainer
Ghost containers exist.
Complete process
CorruptDockerOverlay2
Docker Overlay2 storage corruption
Complete process

K8s Component Extension (6 Types)

Fault Type
Description
Self-Healing Policy
ConnectApiServer
Cannot connect to API Server
Complete process
PLEGNotHealthy
PLEG is unhealthy.
Complete process
KubeletUnhealthy
Kubelet is unhealthy.
Complete process
FrequentKubeletRestart
Frequent Kubelet restarts.
Isolate + recover
FrequentDockerRestart
Frequent Docker restarts.
Isolate + recover
FrequentContainerdRestart
Frequent Containerd restarts.
Isolate + recover

GPU Monitoring (12 Types)

Fault Type
Description
Self-Healing Policy
GPUDeviceLost
GPU device lost.
Complete process
GPUDoubleBitEccError
GPU double-bit ECC error (uncorrectable)
Isolate + drain only
GPUHighSingleBitEccError
GPU single-bit ECC error threshold exceeded.
Isolate + drain only
GPUInfoROMCorrupted
GPU InfoROM corrupted.
Isolate + drain only
GPUNvlinkError
NVLink communication error
Complete process
GPUPCIeError
PCIe interface abnormal
Complete process
GPUPendingRetiredPages
GPU memory pages pending retirement
Complete process
GPUPowerError
GPU power issue
Isolate + drain only
GPURemappingRowsError
GPU memory row remapping error
Isolate + drain only
GPUTempError
GPU overtemperature
Isolate + drain only
GPUXIDFatalError
GPU fatal XID error
Isolate + drain only
GPUXIDWarningError
GPU warning XID error
Complete process
Note:
Complete flow: Cordon → Drain → Reboot → UnCordon, which applies to software or recoverable issues.
Isolation + Drain + Recovery: Cordon → Drain → UnCordon, which applies to resource pressure issues.
Isolation + Drain Only: Cordon → Drain, which applies to hardware failures and requires manual intervention for repair.

Monitoring Metrics

The Node-Healing component exposes Prometheus metrics for monitoring the operational status of the self-healing system:
Metric Name
Type
Description
component_request_duration_millisecond
Histogram
Component request duration (milliseconds)
controller_request_total
Counter
Total number of controller requests
controller_request_duration_millisecond
Summary
Controller request duration, providing P25/P50/P75/P90/P99 percentiles.

References



Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan