easzlab / kubeasz

使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响
https://github.com/easzlab/kubeasz
10.39k stars 3.49k forks source link

POD_MAX_PIDS: -1不做限制极端情况会导致k8s出现不稳定情况 #1399

Closed taoshanghu closed 2 days ago

taoshanghu commented 1 month ago

What happened? 发生了什么问题?

POD_MAX_PIDS: -1在不对pod做进程和线程数限制的情况下,如果pod内部出现线程泄露,导致宿主机pid_max资源满,

What did you expect to happen? 期望的结果是什么?

建议调整到阀值,数据可以大一点

How can we reproduce it (as minimally and precisely as possible)? 尽可能最小化、精确地描述如何复现问题

宿主机pid_max资源满,会出现pod健康检测失败,进而出现pod反复重启,导致k8s集群不稳定

Anything else we need to know? 其他需要说明的情况

No response

Kubernetes version k8s 版本

1.50

Kubeasz version

OS version 操作系统版本

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here ```

Related plugins (CNI, CSI, ...) and versions (if applicable) 其他网络插件等需要说明的情况

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 days ago

This issue was closed because it has been inactive for 14 days since being marked as stale.