when i create a job, it gets created successfully. however in the logs it complains as pod not found, any idea why please? and how to debug this?
Job as below:
apiVersion: batch/v1 kind: Job metadata: name: throw-job-1 spec: backoffLimit: 15 template: spec: containers: - image: kodekloud/throw-dice name: throw-dice restartPolicy: Never
kubectl create -f throw-job-1.yml
kubectl logs throw-job-1
Output of logs:
Error from server (NotFound): pods "throw-job-1" not found