kubernetes cron 作业应该每 10 分钟运行一次,并且应该删除集群中所有命名空间中处于“Terminating”状态的 Pod?请帮帮我....我正在为 bash one liner shell 脚本而苦苦挣扎
apiVersion: batch/v1
kind: Job
metadata:
name: process-item-$ITEM
labels:
jobgroup: jobexample
spec:
template:
metadata:
name: jobexample
labels:
jobgroup: jobexample
spec:
containers:
- name: c
image: busybox
command: ["sh", "-c", "echo Processing item $ITEM && sleep 5"]
restartPolicy: Never