---
title: K8s集群节点not ready的解决方法
description: "节点加入集群后not ready或者节点重启后not ready。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcpfs/ecosystemEnable/Prometheus/kunpengprometheus_03_0006.html
sourcePath: /source/zh/kunpengcpfs/ecosystemEnable/Prometheus/kunpengprometheus_03_0006.html
indexId: 43825b8ac9f8ca938fb2aa7a427c14a66e19d1e9fedd6c58273026b3ae771da280
---
# K8s集群节点not ready的解决方法

#### 问题现象描述

节点加入集群后not ready或者节点重启后not ready。


#### 关键过程、根本原因分析

注释“/etc/fstab”中的swap但未生效。


#### 结论、解决方案及效果

通过systemctl进行禁止交换分区。

1. 查看交换分区对应的服务。

```
systemctl | grep swap
```


2. 禁止交换分区。

```
systemctl mask dev-sda4.swap
```


3. 重启系统。

```
reboot
```
