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
check_files:
stage: cache_clear
title: Check Files
type: freestyle
image: codefresh/kubectl
commands:
- kubectl config use-context staging-eks-cluster
- kubectl exec -it backend-app ls -l
Can anyone help me on this