Pod 의 Terminated 테스트를 위한 테스트 배포는 다음과 같다.
kind: Pod
apiVersion: v1
metadata:
name: terminated-pod
namespace: default
spec:
containers:
- name: test-pod
image: gcr.io/google_containers/busybox:1.24
command:
- "/bin/sh"
args:
- "-c"
- "sleep 5 && exit 1"
restartPolicy: "Never"
위 Manifest 를 배포하면 Pod 의 Terminated 를 테스트 할 수 있다.