소스 검색

memory limits & fix rook monitoring

Josh Bicking 2 달 전
부모
커밋
2d77d14ab3
7개의 변경된 파일49개의 추가작업 그리고 20개의 파일을 삭제
  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: