Execute a command inside running pod from codefresh pipeline

I need to run a command inside a pod running on my EKS cluster from Codefresh pipeline. I can do it by kubectl exec -it pod_name ls locally

When I try to use same command on the pipeline, I receive following error

Error from server (BadRequest): Upgrade request required  

Below is the pipeline step I used

    stage: cache_clear
    title: Check Files
    type: freestyle
    image: codefresh/kubectl
      - kubectl config use-context staging-eks-cluster
      - kubectl exec -it backend-app ls -l

Can anyone help me on this


It is best to open a ticket with us so that our support team can investigate.
Be sure to include the URL of the build that has the issue