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

Revert "[Rest Server] Update restart policy to avoid stuck pending pods" #3864

Merged
merged 1 commit into from
Nov 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/rest-server/src/models/v2/job/k8s.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ const generateTaskRole = (taskRole, labels, config) => {
},
spec: {
privileged: false,
// workaround for pending pods due to no ready sandbox before the fix
// https://github.com/kubernetes/kubernetes/commit/3fac48f8
restartPolicy: gangAllocation === 'true' ? 'Never' : 'OnFailure',
restartPolicy: 'Never',
serviceAccountName: 'frameworkbarrier-account',
initContainers: [
{
Expand Down