From 1e99cb7985be73682b028e4ef39c1ba17d7fbf70 Mon Sep 17 00:00:00 2001 From: "Al @h0lybyte" <5599058+h0lybyte@users.noreply.github.com> Date: Thu, 26 Feb 2026 07:35:40 -0500 Subject: [PATCH] fix(irc): resolve OOM crash on irc-redirect nginx pod nginx:1.27-alpine auto-detects ~45 CPU cores and spawns one worker per core, exceeding the 32Mi memory limit. Add nginx.conf with worker_processes 1 and bump memory limit to 64Mi. --- .../irc/manifests/irc-redirect-configmap.yaml | 15 +++++++++++++++ .../irc/manifests/irc-redirect-deployment.yaml | 12 +++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/apps/kube/irc/manifests/irc-redirect-configmap.yaml b/apps/kube/irc/manifests/irc-redirect-configmap.yaml index 701684985f..bea088c089 100644 --- a/apps/kube/irc/manifests/irc-redirect-configmap.yaml +++ b/apps/kube/irc/manifests/irc-redirect-configmap.yaml @@ -17,3 +17,18 @@ data: + nginx.conf: | + worker_processes 1; + events { + worker_connections 128; + } + http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + server { + listen 80; + server_name _; + root /usr/share/nginx/html; + index index.html; + } + } diff --git a/apps/kube/irc/manifests/irc-redirect-deployment.yaml b/apps/kube/irc/manifests/irc-redirect-deployment.yaml index 4b08e20f62..0ba555c044 100644 --- a/apps/kube/irc/manifests/irc-redirect-deployment.yaml +++ b/apps/kube/irc/manifests/irc-redirect-deployment.yaml @@ -26,12 +26,16 @@ spec: - name: html mountPath: /usr/share/nginx/html readOnly: true + - name: nginx-conf + mountPath: /etc/nginx/nginx.conf + subPath: nginx.conf + readOnly: true resources: requests: memory: '16Mi' cpu: '10m' limits: - memory: '32Mi' + memory: '64Mi' cpu: '50m' livenessProbe: httpGet: @@ -49,6 +53,12 @@ spec: - name: html configMap: name: irc-redirect-html + - name: nginx-conf + configMap: + name: irc-redirect-html + items: + - key: nginx.conf + path: nginx.conf --- apiVersion: v1 kind: Service