fix(dotnet): 全部 .NET 主容器加 appArmorProfile Unconfined——AppArmor 拒线程定向信号致 GC abort
根因(dotnet/runtime#136603,已由同事在 sciveda 现场实测验证):Ubuntu 26.04 新内核 配套 AppArmor 行为禁止容器内进程向自身线程发信号(pthread_kill/tgkill → EACCES), CoreCLR GC 挂起线程失败 → 运行时 abort → dmesg 表现为 'general protection fault in libc.so.6[+0x289a2]'(.NET BGC/Server GC/TP Worker 线程),容器 exit 139 CrashLoop,负载越高崩得越频,且 journalctl 无 apparmor=DENIED 记录。 同机制亦解释此前 postgres 'could not signal for checkpoint: Permission denied' (privileged 之所以有效 = privileged 容器不受 AppArmor 约束)。 修复:agent/sso/ultra/edge/gateway/platform 六处 .NET 主容器 securityContext.appArmorProfile.type: Unconfined。
This commit is contained in:
1 parent
407aef89e1
commit
0a451f6070
6 files changed
+18
No files matched your search
@@ -30,6 +30,9 @@ spec:
|
||||
{{ $image := index $root.Values.images .image }}
|
||||
image: {{ include "mixingx-platform.image" (dict "registry" $root.Values.global.imageRegistry "image" $image) | quote }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
appArmorProfile:
|
||||
type: Unconfined
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ $port }}
|
||||
|
||||
Reference in new issue
Block a user