Skip to content

Commit

Permalink
Fix kubernetes systemd service templates
Browse files Browse the repository at this point in the history
There are cases where systemd fails to restart kubernetes services.
This change fixes that by inceasing the restart interval in the
service templates.

Change-Id: I305644a78cee80db43b561e71a532feb414d8322
story: 2006265
task: 35956
  • Loading branch information
ttsiouts committed Jul 23, 2019
1 parent a70341e commit 810e811
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
6 changes: 4 additions & 2 deletions dockerfiles/heat-container-agent/service.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ Description=Heat Container Agent system image
[Service]
ExecStart=$EXEC_START
ExecStop=$EXEC_STOP
Restart=on-failure
WorkingDirectory=$DESTDIR
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
4 changes: 3 additions & 1 deletion dockerfiles/kubernetes-apiserver/service.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ After=network-online.target
[Service]
ExecStart=$EXEC_START
ExecStop=$EXEC_STOP
Restart=on-failure
WorkingDirectory=$DESTDIR
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/kubernetes-controller-manager/service.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ Description=kubernetes-controller-manager
[Service]
ExecStart=$EXEC_START
ExecStop=$EXEC_STOP
Restart=on-failure
WorkingDirectory=$DESTDIR
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/kubernetes-kubelet/service.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ After=docker.service
[Service]
ExecStart=$EXEC_START
ExecStop=$EXEC_STOP
Restart=on-failure
WorkingDirectory=$DESTDIR
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/kubernetes-proxy/service.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ Description=kubernetes-proxy
[Service]
ExecStart=$EXEC_START
ExecStop=$EXEC_STOP
Restart=on-failure
WorkingDirectory=$DESTDIR
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/kubernetes-scheduler/service.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ Description=kubernetes-scheduler
[Service]
ExecStart=$EXEC_START
ExecStop=$EXEC_STOP
Restart=on-failure
WorkingDirectory=$DESTDIR
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target
Expand Down

0 comments on commit 810e811

Please sign in to comment.