Verified Commit 53d42663 authored by Bence Nagy's avatar Bence Nagy

Set resource limits on everything

parent ba8666c9
...@@ -36,3 +36,10 @@ spec: ...@@ -36,3 +36,10 @@ spec:
secretKeyRef: secretKeyRef:
name: datadog-auth-token name: datadog-auth-token
key: token key: token
resources:
limits:
cpu: 50m
memory: 128Mi
requests:
cpu: 10m
memory: 32Mi
...@@ -29,3 +29,10 @@ spec: ...@@ -29,3 +29,10 @@ spec:
secretKeyRef: secretKeyRef:
name: cloudflare-api-key name: cloudflare-api-key
key: key key: key
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 16Mi
...@@ -91,6 +91,13 @@ spec: ...@@ -91,6 +91,13 @@ spec:
periodSeconds: 10 periodSeconds: 10
successThreshold: 1 successThreshold: 1
timeoutSeconds: 10 timeoutSeconds: 10
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 50m
memory: 256Mi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
......
...@@ -25,3 +25,10 @@ spec: ...@@ -25,3 +25,10 @@ spec:
value: auto value: auto
- name: CONCURRENT_ITEMS - name: CONCURRENT_ITEMS
value: "8" value: "8"
resources:
limits:
cpu: 200m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi
...@@ -46,6 +46,13 @@ spec: ...@@ -46,6 +46,13 @@ spec:
port: 6697 port: 6697
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 50m
memory: 32Mi
requests:
cpu: 20m
memory: 4Mi
volumes: volumes:
- name: znc-config - name: znc-config
persistentVolumeClaim: persistentVolumeClaim:
......
...@@ -75,11 +75,11 @@ spec: ...@@ -75,11 +75,11 @@ spec:
key: FF_APP_KEY key: FF_APP_KEY
resources: resources:
limits: limits:
cpu: 100m cpu: 200m
memory: 256Mi memory: 512Mi
requests: requests:
cpu: 10m cpu: 10m
memory: 32Mi memory: 128Mi
volumeMounts: volumeMounts:
- mountPath: /var/www/firefly-iii/storage/export - mountPath: /var/www/firefly-iii/storage/export
name: firefly-export name: firefly-export
......
...@@ -42,7 +42,7 @@ spec: ...@@ -42,7 +42,7 @@ spec:
mountPath: /fs mountPath: /fs
containers: containers:
- name: app - name: app
image: linuxserver/bazarr:c61b467e-ls28 image: linuxserver/bazarr:v0.7.4-ls34
ports: ports:
- containerPort: 6767 - containerPort: 6767
env: env:
...@@ -67,6 +67,13 @@ spec: ...@@ -67,6 +67,13 @@ spec:
port: 6767 port: 6767
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 50m
memory: 256Mi
volumes: volumes:
- name: bazarr-config - name: bazarr-config
persistentVolumeClaim: persistentVolumeClaim:
......
...@@ -42,7 +42,7 @@ spec: ...@@ -42,7 +42,7 @@ spec:
mountPath: /fs mountPath: /fs
containers: containers:
- name: app - name: app
image: linuxserver/deluge:36ed55be-ls17 image: linuxserver/deluge:78da80ca-ls20
ports: ports:
- containerPort: 8112 - containerPort: 8112
- containerPort: 45401 - containerPort: 45401
...@@ -89,6 +89,13 @@ spec: ...@@ -89,6 +89,13 @@ spec:
port: 8112 port: 8112
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 1000m
memory: 2Gi
requests:
cpu: 200m
memory: 512Mi
volumes: volumes:
- name: deluge-config - name: deluge-config
persistentVolumeClaim: persistentVolumeClaim:
......
...@@ -35,7 +35,7 @@ spec: ...@@ -35,7 +35,7 @@ spec:
spec: spec:
containers: containers:
- name: app - name: app
image: linuxserver/jackett:v0.11.223-ls6 image: linuxserver/jackett:v0.11.341-ls10
ports: ports:
- containerPort: 9117 - containerPort: 9117
env: env:
...@@ -55,6 +55,13 @@ spec: ...@@ -55,6 +55,13 @@ spec:
port: 9117 port: 9117
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 200m
memory: 512Mi
requests:
cpu: 50m
memory: 256Mi
volumes: volumes:
- name: jackett-config - name: jackett-config
persistentVolumeClaim: persistentVolumeClaim:
......
...@@ -94,6 +94,13 @@ spec: ...@@ -94,6 +94,13 @@ spec:
port: 32400 port: 32400
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 4000m
memory: 2Gi
requests:
cpu: 1000m
memory: 1Gi
volumes: volumes:
- name: plex-config - name: plex-config
persistentVolumeClaim: persistentVolumeClaim:
......
...@@ -42,7 +42,7 @@ spec: ...@@ -42,7 +42,7 @@ spec:
mountPath: /fs mountPath: /fs
containers: containers:
- name: app - name: app
image: linuxserver/radarr:0.2.0.1331-ls11 image: linuxserver/radarr:0.2.0.1349-ls1
ports: ports:
- containerPort: 7878 - containerPort: 7878
env: env:
...@@ -67,6 +67,13 @@ spec: ...@@ -67,6 +67,13 @@ spec:
port: 7878 port: 7878
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 50m
memory: 256Mi
volumes: volumes:
- name: radarr-config - name: radarr-config
persistentVolumeClaim: persistentVolumeClaim:
......
...@@ -23,6 +23,8 @@ metadata: ...@@ -23,6 +23,8 @@ metadata:
app: sonarr app: sonarr
spec: spec:
replicas: 1 replicas: 1
strategy:
type: Recreate
selector: selector:
matchLabels: matchLabels:
app: sonarr app: sonarr
...@@ -31,9 +33,16 @@ spec: ...@@ -31,9 +33,16 @@ spec:
labels: labels:
app: sonarr app: sonarr
spec: spec:
initContainers:
- name: set-up-filesystem-mount
image: busybox:1
command: ["mkdir", "-p", "/fs/media"]
volumeMounts:
- name: fs-root
mountPath: /fs
containers: containers:
- name: app - name: app
image: linuxserver/sonarr:3.0.1.441-ls51 image: linuxserver/sonarr:3.0.1.497-ls74
ports: ports:
- containerPort: 8989 - containerPort: 8989
env: env:
...@@ -58,10 +67,25 @@ spec: ...@@ -58,10 +67,25 @@ spec:
port: 8989 port: 8989
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 50m
memory: 256Mi
volumes: volumes:
- name: sonarr-config - name: sonarr-config
persistentVolumeClaim: persistentVolumeClaim:
claimName: sonarr-config-pvc claimName: sonarr-config-pvc
- name: fs-root
flexVolume:
driver: ceph.rook.io/rook
fsType: ceph
options:
fsName: media-fs
clusterNamespace: rook-ceph
path: /
- name: sonarr-media - name: sonarr-media
flexVolume: flexVolume:
driver: ceph.rook.io/rook driver: ceph.rook.io/rook
...@@ -69,6 +93,7 @@ spec: ...@@ -69,6 +93,7 @@ spec:
options: options:
fsName: media-fs fsName: media-fs
clusterNamespace: rook-ceph clusterNamespace: rook-ceph
path: /media
- name: localtime - name: localtime
hostPath: hostPath:
path: /etc/localtime path: /etc/localtime
......
...@@ -27,6 +27,13 @@ spec: ...@@ -27,6 +27,13 @@ spec:
- name: mumbledj-config - name: mumbledj-config
mountPath: /etc/mumbledj mountPath: /etc/mumbledj
readOnly: true readOnly: true
resources:
limits:
cpu: 100m
memory: 64Mi
requests:
cpu: 20m
memory: 32Mi
volumes: volumes:
- name: mumbledj-cache - name: mumbledj-cache
emptyDir: {} emptyDir: {}
......
...@@ -61,6 +61,13 @@ spec: ...@@ -61,6 +61,13 @@ spec:
port: 64738 port: 64738
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 100m
memory: 64Mi
requests:
cpu: 20m
memory: 8Mi
volumes: volumes:
- name: murmur-db - name: murmur-db
persistentVolumeClaim: persistentVolumeClaim:
......
...@@ -25,6 +25,13 @@ spec: ...@@ -25,6 +25,13 @@ spec:
port: 80 port: 80
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 50m
memory: 32Mi
requests:
cpu: 10m
memory: 2Mi
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
......
...@@ -85,6 +85,13 @@ spec: ...@@ -85,6 +85,13 @@ spec:
port: 22 port: 22
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 10m
memory: 4Mi
requests:
cpu: 5m
memory: 1Mi
volumes: volumes:
- name: fs-root - name: fs-root
flexVolume: flexVolume:
...@@ -156,6 +163,13 @@ spec: ...@@ -156,6 +163,13 @@ spec:
- name: images - name: images
mountPath: /usr/share/nginx/html mountPath: /usr/share/nginx/html
readOnly: yes readOnly: yes
resources:
limits:
cpu: 50m
memory: 32Mi
requests:
cpu: 10m
memory: 2Mi
volumes: volumes:
- name: images - name: images
flexVolume: flexVolume:
......
...@@ -32,6 +32,13 @@ spec: ...@@ -32,6 +32,13 @@ spec:
path: /sample path: /sample
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 16Mi
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
......
...@@ -25,6 +25,13 @@ spec: ...@@ -25,6 +25,13 @@ spec:
port: 80 port: 80
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 50m
memory: 32Mi
requests:
cpu: 10m
memory: 2Mi
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
......
...@@ -25,6 +25,13 @@ spec: ...@@ -25,6 +25,13 @@ spec:
port: 80 port: 80
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
resources:
limits:
cpu: 50m
memory: 32Mi
requests:
cpu: 10m
memory: 2Mi
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment