Skip to content

Commit 60f52ef

Browse files
authored
Rightsize resilio hass memory (#168)
* rafag: add resource requests/limits for resilio and home-assistant * rafag: fix transmission CrashLoopBackOff from aggressive liveness probes Increase failureThreshold from 1 to 3 on both container and vpn liveness probes to tolerate brief VPN transitions without cascading restarts. Also fix imagePullPolicy Always -> IfNotPresent on transmission to stop pulling from Docker Hub on every one of 500+ restarts. * added limits to hass and resilio * added limits to hass and resilio
1 parent a4c2d22 commit 60f52ef

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

apps/HomeAssistant.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ spec:
2020
name: home-assistant-values
2121
optional: true
2222
values:
23+
resources:
24+
requests:
25+
cpu: 200m
26+
memory: 1Gi
27+
limits:
28+
memory: 4Gi
2329
controllerType: deployment
2430
image:
2531
tag: stable

apps/Resilio.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ spec:
2020
name: resilio-values
2121
optional: false
2222
values:
23+
resources:
24+
requests:
25+
cpu: 250m
26+
memory: 2Gi
27+
limits:
28+
memory: 4Gi
2329
env:
2430
TZ: "${CLUSTER_TIME_ZONE}"
2531
PUID: "1000"

apps/generic/overlays/transmission/patches/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
- '[ "$(curl -s https://ifconfig.co/city)" != "${VPN_CITY}" ]'
4343
initialDelaySeconds: 45
4444
periodSeconds: 60
45-
failureThreshold: 1
45+
failureThreshold: 3
4646
timeoutSeconds: 5
4747
httpGet:
4848
$patch: delete
@@ -105,7 +105,7 @@ spec:
105105
- '[ "$(curl -s https://ifconfig.co/city)" != "${VPN_CITY}" ]'
106106
initialDelaySeconds: 45
107107
periodSeconds: 60
108-
failureThreshold: 1
108+
failureThreshold: 3
109109
timeoutSeconds: 5
110110
volumeMounts:
111111
- name: yasr-volume

0 commit comments

Comments
 (0)