k8s-samples/CKA_Course/pods/health/restart-onfailure.yaml
2022-08-16 21:59:58 -05:00

10 lines
179 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: onfailure-pod
spec:
restartPolicy: OnFailure
containers:
- name: busybox
image: busybox
command: ["sh", "-c", "sleep 10"]