Skip to content

Commit

Permalink
homeassistant: increase graceful termination period
Browse files Browse the repository at this point in the history
Signed-off-by: paulfantom <[email protected]>
  • Loading branch information
paulfantom committed Dec 13, 2024
1 parent e62ad93 commit 0ddf47f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/homeassistant/manifests/homeassistant/statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
- containerPort: 8123
name: http
preStop:
sleep: 120
sleep: 240
readinessProbe:
failureThreshold: 5
httpGet:
Expand Down Expand Up @@ -108,6 +108,7 @@ spec:
priorityClassName: production-high
restartPolicy: Always
serviceAccountName: homeassistant
terminationGracePeriodSeconds: 300
volumes:
- name: backups
persistentVolumeClaim:
Expand Down
3 changes: 2 additions & 1 deletion lib/jsonnet/apps/homeassistant.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function(params) {
}],
preStop: {
# Time to wait before job downloading new image completes
sleep: 120,
sleep: 240,
},
ports: [{
containerPort: 8123,
Expand Down Expand Up @@ -222,6 +222,7 @@ function(params) {
restartPolicy: 'Always',
serviceAccountName: $.serviceAccount.metadata.name,
hostNetwork: $._config.hostNetwork,
terminationGracePeriodSeconds: 300,
volumes: [
if std.objectHas(params, 'storage') && std.objectHas(params.storage, 'backups') && std.objectHas(params.storage.backups, 'pvcSpec') && std.length(params.storage.backups.pvcSpec) > 0 then
{
Expand Down

0 comments on commit 0ddf47f

Please sign in to comment.