[eggjs/egg]egg在k8s中运行时agent一直被杀掉,单独使用docker没事

2025-11-04 364 views
8
问题描述: 最近开始修改服务架构,打算把项目丢到k8s上去,发现正常可运行的镜像在k8s pod里部署后,会不断重启,看日志显示是agent收到sigkill被杀掉,一直循环 操作系统:阿里云容器服务 Node 版本:8.12 Egg 版本:2.1

process.json

回答

9

看文件可能比较乱 目前在慢慢转移调整 请大佬赐教agent在k8s中自杀的原因是什么

0

先换成 egg-scripts 试试 eggctl start --no-daemon

4

Hello @phper-chen. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.

@phper-chen,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

很抱歉,项目有点杂,可能没办法提供最小复现呐

3

先换成 egg-scripts 试试 eggctl start --no-daemon

嗯 没有配这个

1

先换成 egg-scripts 试试 eggctl start --no-daemon

没事了 是没过k8s的健康检查 打扰各位了 非常感谢 告辞~?

6

@phper-chen 你是关了就可以了吗,还是怎么样。我也是遇到跟你一模一样的问题,但是devops跟我说没有开健康检查