Kubernetes has a ton of pods in error state that can't seem to be cleared

后端 未结 4 1865
执笔经年
执笔经年 2021-02-13 20:01

I was originally trying to run a Job that seemed to get stuck in a CrashBackoffLoop. Here was the service file:

apiVersion: batch/v1
kind: Job
metadata:
  name:         


        
4条回答
  •  心在旅途
    2021-02-13 20:23

    kubectl delete pods --field-selector status.phase=Failed -n

    ...cleans up any failed pods in your-namespace.

提交回复
热议问题