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

Commit

Permalink
[Rest Server] Update restart policy to avoid stuck pending pods (#3856)
Browse files Browse the repository at this point in the history
* Update restart policy to avoid stuck pending pods

Update restart policy to avoid stuck pending pods #3760

* Add comments

Add comments
  • Loading branch information
abuccts authored Nov 18, 2019
1 parent 5496960 commit 3a7a351
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rest-server/src/models/v2/job/k8s.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ const generateTaskRole = (taskRole, labels, config) => {
},
spec: {
privileged: false,
restartPolicy: 'Never',
// workaround for pending pods due to no ready sandbox before the fix
// https://github.com/kubernetes/kubernetes/commit/3fac48f8
restartPolicy: gangAllocation === 'true' ? 'Never' : 'OnFailure',
serviceAccountName: 'frameworkbarrier-account',
initContainers: [
{
Expand Down

0 comments on commit 3a7a351

Please sign in to comment.