Need to know what difference actually the meta data under spec is making. as after executing this i did not see my name anywhere so what is the use of it. as in kubernetes task L1- 9 they have mentioned to use metadata under template again. so need to understand
pasting the yaml below
apiVersion: batch/v1
kind: Job
metadata:
name: test
spec:
template:
metadata:
name: myname
spec:
containers:
- name: container-countdown-nautilus
image: debian:latest
command: [“sleep”, “5”]
restartPolicy: Never