apiVersion: batch/v1
kind: Job
metadata:
  name: throw-dice-job
spec:
  template:
    spec:
      containers:
       -  image: kodekloud/throw-dice
          name: throw-dice
      restartPolicy: OnFailure