kubectl exec fails with the error "Unable to use a TTY - input is not a terminal or the right kind of file"
I am running a jenkins pipeline with the following command: kubectl exec -it kafkacat-5f8fcfcc57-2txhc -- kafkacat -b cord-kafka -C -t BBSim-OLT-0-Events -o s@1585031458 which is running fine on the terminal of the machine the pipeline is running on, but on the actual pipeline I get the following error: "Unable to use a TTY - input is not a terminal or the r