Parcourir la source

memory limits & fix rook monitoring

Josh Bicking il y a 2 mois
Parent
commit
2d77d14ab3
7 fichiers modifiés avec 49 ajouts et 20 suppressions
  1. 5 0
      delugevpn.yaml
  2. 5 0
      lidarr.yaml
  3. 23 19
      monitoring/prometheus/prometheus.yaml
  4. 1 1
      plex.yaml
  5. 5 0
      radarr.yaml
  6. 5 0
      sonarr.yaml
  7. 5 0
      watchlistarr.yaml

+ 5 - 0
delugevpn.yaml

@@ -34,6 +34,11 @@ spec:
           name: seedbox
         - mountPath: "/config"
           name: config
+        resources:
+          requests:
+            memory: "0"
+          limits:
+            memory: "6Gi"
       volumes:
       - name: seedbox
         persistentVolumeClaim:

+ 5 - 0
lidarr.yaml

@@ -38,6 +38,11 @@ spec:
           name: seedbox
         - mountPath: "/config"
           name: config
+        resources:
+          requests:
+            memory: "0"
+          limits:
+            memory: "1Gi"
       volumes:
       - name: plex
         persistentVolumeClaim:

+ 23 - 19
monitoring/prometheus/prometheus.yaml

@@ -8,30 +8,34 @@ spec:
   retention: 365d
   resources:
     requests:
-      memory: 400Mi
+      memory: '0'
+    limits:
+      memory: 1Gi
   securityContext:
     fsGroup: 2000
     runAsNonRoot: true
     runAsUser: 1000
   serviceAccountName: prometheus
-  serviceMonitorSelector:
-    matchExpressions:
-    - key: name
-      operator: In
-      values:
-      - kube-state-metrics
-      - node-exporter
-      - kubelet
-      - traefik
-      - rook-ceph-mgr
-      - cloudflared
-      - shelly-plug-exporter
-  serviceMonitorNamespaceSelector:
-    matchExpressions:
-    - key: kubernetes.io/metadata.name
-      operator: In
-      values:
-      - monitoring
+  serviceMonitorSelector: {}
+  #  matchExpressions:
+  #  - key: name
+  #    operator: In
+  #    values:
+  #    - kube-state-metrics
+  #    - node-exporter
+  #    - kubelet
+  #    - traefik
+  #    - rook-ceph-mgr
+  #    - rook-ceph-exporter
+  #    - cloudflared
+  #    - shelly-plug-exporter
+  serviceMonitorNamespaceSelector: {}
+  #  matchExpressions:
+  #  - key: kubernetes.io/metadata.name
+  #    operator: In
+  #    values:
+  #    - monitoring
+  #    - rook-ceph
   storage:
     volumeClaimTemplate:
       spec:

+ 1 - 1
plex.yaml

@@ -25,7 +25,7 @@ spec:
     spec:
       containers:
       - name: plex
-        image: linuxserver/plex:1.40.4.8679-424562606-ls224
+        image: linuxserver/plex:latest
         # for debugging
         # command: ["/bin/sh"]
         # args: ["-c", "sleep 3600"]

+ 5 - 0
radarr.yaml

@@ -38,6 +38,11 @@ spec:
           name: seedbox
         - mountPath: "/config"
           name: config
+        resources:
+          requests:
+            memory: "0"
+          limits:
+            memory: "2Gi"
       volumes:
       - name: plex
         persistentVolumeClaim:

+ 5 - 0
sonarr.yaml

@@ -38,6 +38,11 @@ spec:
           name: seedbox
         - mountPath: "/config"
           name: config
+        resources:
+          requests:
+            memory: "0"
+          limits:
+            memory: "2Gi"
       volumes:
       - name: plex
         persistentVolumeClaim:

+ 5 - 0
watchlistarr.yaml

@@ -26,6 +26,11 @@ spec:
         - name: watchlistarr-secret
           readOnly: true
           mountPath: /app/config
+        resources:
+          requests:
+            memory: '0'
+          limits:
+            memory: 500Mi
       volumes:
       - name: watchlistarr-secret
         secret: