k8s工作已完成,但窗格显示“ OOMKILLED”

我以2Gi内存限制运行一项工作,这似乎还不够。工作状态显示为“完成”,成功1次

status:
  completionTime: "2020-05-09T03:44:07Z"
  conditions:
  - lastProbeTime: "2020-05-09T03:44:07Z"
    lastTransitionTime: "2020-05-09T03:44:07Z"
    status: "True"
    type: Complete
  startTime: "2020-05-09T03:42:07Z"
  succeeded: 1

而广告连播的状态为“ OOMKILLED”

status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2020-05-09T03:42:07Z"
    reason: PodCompleted
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2020-05-09T03:44:07Z"
    reason: PodCompleted
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2020-05-09T03:44:07Z"
    reason: PodCompleted
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2020-05-09T03:42:07Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: docker://50db639d6f29a56f12b0b878a2a5ee957a9e36fb6dcd089831e4422b85a42e3a
    lastState: {}
    name: fairing-job
    ready: false
    restartCount: 0
    state:
      terminated:
        containerID: docker://50db639d6f29a56f12b0b878a2a5ee957a9e36fb6dcd089831e4422b85a42e3a
        exitCode: 0
        finishedAt: "2020-05-09T03:44:07Z"
        reason: OOMKilled
        startedAt: "2020-05-09T03:42:13Z"
  hostIP: 10.201.1.202
  phase: Succeeded
  podIP: 10.178.140.83
  qosClass: Guaranteed
  startTime: '2020-05-09T07:38:01Z'

提高内存限制可以解决此问题,但是我不知道这是怎么发生的。这使我认为工作状态有时可能是错误的?

评论