kubectl exec into pod resulting in Unable to use a TTY error every time if run through automation

前端 未结 2 397
一整个雨季
一整个雨季 2021-01-25 20:24

i have a simple automation to exec into a kubernetes pod but it always results in the below error :-

kubectl exec -it my         


        
2条回答
  •  孤城傲影
    2021-01-25 21:01

    I got it working using the below approach :-

    kubectl exec -ti my-pod -c my-container -n my-namespace -- ls

提交回复
热议问题