Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
delete-node: Add restart on-failure and restart sec
Browse files Browse the repository at this point in the history
This commit adds `Restart=on-failure` and `RestartSec=5s` to the
delete-node service on all platforms.

Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
  • Loading branch information
surajssd committed Feb 8, 2021
1 parent 131ee9a commit 08d342f
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ systemd:
[Unit]
Description=Waiting to delete Kubernetes node on shutdown
[Service]
Restart=on-failure
RestartSec=5s
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ systemd:
[Unit]
Description=Waiting to delete Kubernetes node on shutdown
[Service]
Restart=on-failure
RestartSec=5s
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ systemd:
[Unit]
Description=Waiting to delete Kubernetes node on shutdown
[Service]
Restart=on-failure
RestartSec=5s
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ systemd:
[Unit]
Description=Waiting to delete Kubernetes node on shutdown
[Service]
Restart=on-failure
RestartSec=5s
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
Expand Down
2 changes: 2 additions & 0 deletions assets/terraform-modules/node/templates/node.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ systemd:
[Unit]
Description=Waiting to delete Kubernetes node on shutdown
[Service]
Restart=on-failure
RestartSec=5s
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ systemd:
[Unit]
Description=Waiting to delete Kubernetes node on shutdown
[Service]
Restart=on-failure
RestartSec=5s
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
Expand Down
60 changes: 30 additions & 30 deletions pkg/assets/generated_assets.go

Large diffs are not rendered by default.

0 comments on commit 08d342f

Please sign in to comment.