From 24d4d34733e572e77304cedee01861877b07c95a Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Fri, 18 Jul 2025 13:46:54 +0300 Subject: [PATCH] Adjusted resources on all deployments --- k8s/apps/gitea/deployment.yaml | 14 ++++++++ k8s/apps/hexound/deployment.yaml | 14 ++++++++ k8s/apps/immich/deployments.yaml | 21 +++++++++++ k8s/apps/jellyfin/values.yaml | 7 ++++ k8s/apps/khm/deployment.yaml | 7 ++++ k8s/apps/paperless/gotenberg-values.yaml | 10 +++--- k8s/apps/paperless/paperless-values.yaml | 14 ++++++++ k8s/apps/paperless/tika-values.yaml | 10 +++--- k8s/apps/rustdesk/values.yaml | 36 ++++++++----------- k8s/apps/sonarr-stack/bazarr-values.yaml | 7 ++++ k8s/apps/sonarr-stack/prowlarr-values.yaml | 7 ++++ k8s/apps/sonarr-stack/sonarr-values.yaml | 7 ++++ k8s/apps/stirling-pdf/values.yaml | 10 +++--- k8s/apps/vaultwarden/deployment.yaml | 7 ++++ .../external-secrets/bitwarden-store.yaml | 7 ++++ .../kubernetes-dashboard/deployments.yaml | 14 ++++++++ k8s/games/beam-ng/deployments.yaml | 7 ++++ k8s/games/counter-strike-16/deployments.yaml | 21 +++++++---- k8s/games/minecraft/deployments.yaml | 19 ++++++---- 19 files changed, 189 insertions(+), 50 deletions(-) diff --git a/k8s/apps/gitea/deployment.yaml b/k8s/apps/gitea/deployment.yaml index 9cf1229..f8728f0 100644 --- a/k8s/apps/gitea/deployment.yaml +++ b/k8s/apps/gitea/deployment.yaml @@ -30,6 +30,13 @@ spec: containers: - name: gitea image: 'gitea/gitea:latest' + resources: + requests: + memory: "512Mi" + cpu: "200m" + limits: + memory: "2Gi" + cpu: "1000m" env: - name: GITEA__service__REGISTER_MANUAL_CONFIRM value: "true" @@ -82,6 +89,13 @@ spec: containers: - name: gitea-runner image: gitea/act_runner:nightly + resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "4Gi" + cpu: "2000m" volumeMounts: - name: docker-sock mountPath: /var/run/docker.sock diff --git a/k8s/apps/hexound/deployment.yaml b/k8s/apps/hexound/deployment.yaml index aba81db..5657241 100644 --- a/k8s/apps/hexound/deployment.yaml +++ b/k8s/apps/hexound/deployment.yaml @@ -24,6 +24,13 @@ spec: initContainers: - name: git-cloner image: alpine/git + resources: + requests: + memory: "32Mi" + cpu: "50m" + limits: + memory: "128Mi" + cpu: "200m" command: - git - clone @@ -36,6 +43,13 @@ spec: containers: - name: hexound image: trafex/php-nginx:3.8.0 + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "256Mi" + cpu: "200m" volumeMounts: - name: hexound-repo mountPath: /var/www/html diff --git a/k8s/apps/immich/deployments.yaml b/k8s/apps/immich/deployments.yaml index ef0b964..c09ffce 100644 --- a/k8s/apps/immich/deployments.yaml +++ b/k8s/apps/immich/deployments.yaml @@ -17,6 +17,13 @@ spec: - name: immich-server image: ghcr.io/immich-app/immich-server:release imagePullPolicy: Always + resources: + requests: + memory: "1Gi" + cpu: "500m" + limits: + memory: "4Gi" + cpu: "2000m" ports: - containerPort: 2283 env: @@ -140,6 +147,13 @@ spec: - name: immich-ml image: ghcr.io/immich-app/immich-machine-learning:release imagePullPolicy: Always + resources: + requests: + memory: "2Gi" + cpu: "1000m" + limits: + memory: "8Gi" + cpu: "4000m" env: - name: TZ value: Asia/Nicosia @@ -174,6 +188,13 @@ spec: containers: - name: redis image: redis:6.2-alpine + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "500m" readinessProbe: exec: command: ["redis-cli", "ping"] diff --git a/k8s/apps/jellyfin/values.yaml b/k8s/apps/jellyfin/values.yaml index 4db0367..6303a26 100644 --- a/k8s/apps/jellyfin/values.yaml +++ b/k8s/apps/jellyfin/values.yaml @@ -1,5 +1,12 @@ image: tag: 10.10.7 +resources: + requests: + memory: "2Gi" + cpu: "1000m" + limits: + memory: "8Gi" + cpu: "4000m" nodeSelector: kubernetes.io/hostname: master.tail2fe2d.ts.net persistence: diff --git a/k8s/apps/khm/deployment.yaml b/k8s/apps/khm/deployment.yaml index cbdd2a1..198156c 100644 --- a/k8s/apps/khm/deployment.yaml +++ b/k8s/apps/khm/deployment.yaml @@ -23,6 +23,13 @@ spec: - name: khm image: 'ultradesu/khm:latest' imagePullPolicy: Always + resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "1Gi" + cpu: "500m" command: - /bin/sh - -c diff --git a/k8s/apps/paperless/gotenberg-values.yaml b/k8s/apps/paperless/gotenberg-values.yaml index 35b059f..efd425a 100644 --- a/k8s/apps/paperless/gotenberg-values.yaml +++ b/k8s/apps/paperless/gotenberg-values.yaml @@ -8,12 +8,12 @@ nodeSelector: kubernetes.io/hostname: nas.homenet resources: - limits: - cpu: 1000m - memory: 1Gi requests: - cpu: 200m - memory: 256Mi + memory: "512Mi" + cpu: "200m" + limits: + memory: "2Gi" + cpu: "1000m" service: type: ClusterIP diff --git a/k8s/apps/paperless/paperless-values.yaml b/k8s/apps/paperless/paperless-values.yaml index 0ce0ca7..75339cf 100644 --- a/k8s/apps/paperless/paperless-values.yaml +++ b/k8s/apps/paperless/paperless-values.yaml @@ -1,8 +1,22 @@ image: tag: 2.15.3 +resources: + requests: + memory: "1Gi" + cpu: "500m" + limits: + memory: "4Gi" + cpu: "2000m" initContainers: install-tesseract-langs: image: ghcr.io/paperless-ngx/paperless-ngx:2.15.1 + resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "1Gi" + cpu: "500m" command: ["/bin/sh", "-c"] args: - apt-get update && apt-get install -y --reinstall tesseract-ocr-rus tesseract-ocr-jpn tesseract-ocr-chi-sim tesseract-ocr-eng tesseract-ocr-ell && cp -v -r /usr/share/tesseract-ocr/5/tessdata/* /custom-tessdata/ diff --git a/k8s/apps/paperless/tika-values.yaml b/k8s/apps/paperless/tika-values.yaml index 33994c8..fcd69ab 100644 --- a/k8s/apps/paperless/tika-values.yaml +++ b/k8s/apps/paperless/tika-values.yaml @@ -8,12 +8,12 @@ nodeSelector: kubernetes.io/hostname: nas.homenet resources: - limits: - cpu: 500m - memory: 512Mi requests: - cpu: 100m - memory: 128Mi + memory: "256Mi" + cpu: "100m" + limits: + memory: "1Gi" + cpu: "500m" service: type: ClusterIP diff --git a/k8s/apps/rustdesk/values.yaml b/k8s/apps/rustdesk/values.yaml index 9874767..b150b23 100644 --- a/k8s/apps/rustdesk/values.yaml +++ b/k8s/apps/rustdesk/values.yaml @@ -50,28 +50,20 @@ service: targetPort: 21118 resources: - hbbrResource: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - hbbsResource: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi + hbbrResource: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "500m" + hbbsResource: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "500m" # Additional volumes on the output Deployment definition. volume: {} diff --git a/k8s/apps/sonarr-stack/bazarr-values.yaml b/k8s/apps/sonarr-stack/bazarr-values.yaml index 27d6c5e..b1486a6 100644 --- a/k8s/apps/sonarr-stack/bazarr-values.yaml +++ b/k8s/apps/sonarr-stack/bazarr-values.yaml @@ -1,3 +1,10 @@ +resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "1Gi" + cpu: "500m" nodeSelector: kubernetes.io/hostname: master.tail2fe2d.ts.net diff --git a/k8s/apps/sonarr-stack/prowlarr-values.yaml b/k8s/apps/sonarr-stack/prowlarr-values.yaml index c22e7b5..9805de7 100644 --- a/k8s/apps/sonarr-stack/prowlarr-values.yaml +++ b/k8s/apps/sonarr-stack/prowlarr-values.yaml @@ -1,5 +1,12 @@ env: TZ: Asia/Nicosia +resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "1Gi" + cpu: "500m" nodeSelector: kubernetes.io/hostname: master.tail2fe2d.ts.net diff --git a/k8s/apps/sonarr-stack/sonarr-values.yaml b/k8s/apps/sonarr-stack/sonarr-values.yaml index 7d06623..2a708b8 100644 --- a/k8s/apps/sonarr-stack/sonarr-values.yaml +++ b/k8s/apps/sonarr-stack/sonarr-values.yaml @@ -1,5 +1,12 @@ env: TZ: Asia/Nicosia +resources: + requests: + memory: "512Mi" + cpu: "200m" + limits: + memory: "2Gi" + cpu: "1000m" nodeSelector: kubernetes.io/hostname: master.tail2fe2d.ts.net diff --git a/k8s/apps/stirling-pdf/values.yaml b/k8s/apps/stirling-pdf/values.yaml index 88665a1..f867e7f 100644 --- a/k8s/apps/stirling-pdf/values.yaml +++ b/k8s/apps/stirling-pdf/values.yaml @@ -28,12 +28,12 @@ ingress: tlsSecret: pdf-hexor-cy-tls resources: - limits: - cpu: 500m - memory: 512Mi requests: - cpu: 250m - memory: 256Mi + memory: "512Mi" + cpu: "200m" + limits: + memory: "2Gi" + cpu: "1000m" probes: liveness: diff --git a/k8s/apps/vaultwarden/deployment.yaml b/k8s/apps/vaultwarden/deployment.yaml index 13e76a8..f776666 100644 --- a/k8s/apps/vaultwarden/deployment.yaml +++ b/k8s/apps/vaultwarden/deployment.yaml @@ -31,6 +31,13 @@ spec: - name: vaultwarden image: 'vaultwarden/server:latest' imagePullPolicy: Always + resources: + requests: + memory: "256Mi" + cpu: "100m" + limits: + memory: "1Gi" + cpu: "500m" env: - name: DOMAIN value: https://vw.hexor.cy diff --git a/k8s/core/external-secrets/bitwarden-store.yaml b/k8s/core/external-secrets/bitwarden-store.yaml index a198a66..ecde819 100644 --- a/k8s/core/external-secrets/bitwarden-store.yaml +++ b/k8s/core/external-secrets/bitwarden-store.yaml @@ -39,6 +39,13 @@ spec: - name: bitwarden-cli image: ultradesu/bitwarden-client:2025.5.0 imagePullPolicy: Always + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "500m" env: - name: BW_HOST valueFrom: diff --git a/k8s/core/kubernetes-dashboard/deployments.yaml b/k8s/core/kubernetes-dashboard/deployments.yaml index 54bfac0..25bcf79 100644 --- a/k8s/core/kubernetes-dashboard/deployments.yaml +++ b/k8s/core/kubernetes-dashboard/deployments.yaml @@ -20,6 +20,13 @@ spec: - name: kubernetes-dashboard image: kubernetesui/dashboard:v2.7.0 imagePullPolicy: Always + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "500m" ports: - containerPort: 8443 protocol: TCP @@ -87,6 +94,13 @@ spec: containers: - name: dashboard-metrics-scraper image: kubernetesui/metrics-scraper:v1.0.6 + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "256Mi" + cpu: "200m" ports: - containerPort: 8000 protocol: TCP diff --git a/k8s/games/beam-ng/deployments.yaml b/k8s/games/beam-ng/deployments.yaml index 5e551ea..cab0147 100644 --- a/k8s/games/beam-ng/deployments.yaml +++ b/k8s/games/beam-ng/deployments.yaml @@ -25,6 +25,13 @@ spec: containers: - name: beam-ng image: 'rouhim/beammp-server' + resources: + requests: + memory: "1Gi" + cpu: "500m" + limits: + memory: "4Gi" + cpu: "2000m" env: - name: BEAMMP_NAME value: 'Anal Hexor' diff --git a/k8s/games/counter-strike-16/deployments.yaml b/k8s/games/counter-strike-16/deployments.yaml index f716eb5..b2dc5df 100644 --- a/k8s/games/counter-strike-16/deployments.yaml +++ b/k8s/games/counter-strike-16/deployments.yaml @@ -41,6 +41,13 @@ spec: containers: - name: prom-a2s-exporter image: armsnyder/a2s-exporter:latest + resources: + requests: + memory: "32Mi" + cpu: "50m" + limits: + memory: "128Mi" + cpu: "200m" ports: - containerPort: 9841 protocol: TCP @@ -49,6 +56,13 @@ spec: - cs.hexor.cy:30015 - name: counter-strike-16 image: 'kingk0der/counter-strike-1.6:latest' + resources: + requests: + memory: "512Mi" + cpu: "200m" + limits: + memory: "2Gi" + cpu: "1000m" args: - +log - -port @@ -56,13 +70,6 @@ spec: envFrom: - configMapRef: name: cs16-server-config - resources: - limits: - memory: 1Gi - #cpu: 1 - requests: - memory: 512Mi - #cpu: 100m ports: - containerPort: 26900 protocol: UDP diff --git a/k8s/games/minecraft/deployments.yaml b/k8s/games/minecraft/deployments.yaml index c245f71..36e35ac 100644 --- a/k8s/games/minecraft/deployments.yaml +++ b/k8s/games/minecraft/deployments.yaml @@ -99,6 +99,13 @@ spec: containers: - name: nginx image: nginx:latest + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "256Mi" + cpu: "200m" ports: - containerPort: 80 volumeMounts: @@ -136,12 +143,12 @@ spec: - nogui workingDir: /mc/ resources: - limits: - memory: 12Gi - #cpu: 1 - requests: - memory: 8Gi - #cpu: 100m + requests: + memory: "8Gi" + cpu: "2000m" + limits: + memory: "12Gi" + cpu: "4000m" ports: - name: game containerPort: 25565