Browse Source

Fix kubernetes systemd service templates

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
changes/02/672302/1
Theodoros Tsioutsias 3 years ago
parent
commit
810e81195e
  1. 6
      dockerfiles/heat-container-agent/service.template
  2. 4
      dockerfiles/kubernetes-apiserver/service.template
  3. 4
      dockerfiles/kubernetes-controller-manager/service.template
  4. 4
      dockerfiles/kubernetes-kubelet/service.template
  5. 4
      dockerfiles/kubernetes-proxy/service.template
  6. 4
      dockerfiles/kubernetes-scheduler/service.template

6
dockerfiles/heat-container-agent/service.template

@ -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
dockerfiles/kubernetes-apiserver/service.template

@ -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

4
dockerfiles/kubernetes-controller-manager/service.template

@ -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

4
dockerfiles/kubernetes-kubelet/service.template

@ -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

4
dockerfiles/kubernetes-proxy/service.template

@ -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

4
dockerfiles/kubernetes-scheduler/service.template

@ -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

Loading…
Cancel
Save