Countdown job in kubernetes

I have written a template as requested in the task but the command does not show any output or sometimes it shows an error.

image: centos:latest
command: ["bash", "for i in 10 9 8 7 6 5 4 3 2 1 ;do echo $i ; done" ]

restartPolicy: Never

would you please let me know where the problem is?

hi @Nasri, can you please share (DM) yml template ?

I have edited it to this one but does not work as well.
apiVersion: batch/v1
kind: Job
metadata:
name: countdown-xfusion
spec:

  template:
    spec:
      containers:
      - name: container-countdown-xfusion
        image: debian:latest
        command: ["for i in {ten nine eight seven six five four three two one} ; do echo $i ; done " ]
      restartPolicy: Never

hi @Nasri, try this, and check output with kubectl logs <pod-name>

    command:
         - "bin/bash"
         - "-c"
         - "for i in 9 8 7 6 5 4 3 2 1 ; do echo $i ; done