# Kubectl exec \<pod\> -i -t -- bash -li throws an error

**URL:** <https://discuss.kubernetes.io/t/kubectl-exec-pod-i-t-bash-li-throws-an-error/6743>\
**Category:** General Discussions\
**Created:** [June 11, 2019, 9:58pm UTC](https://discuss.kubernetes.io/t/kubectl-exec-pod-i-t-bash-li-throws-an-error/6743 "2019-06-11T21:58:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjaiswal](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@pjaiswal](https://discuss.kubernetes.io/u/pjaiswal)\
**Post date:** [June 11, 2019, 9:58pm UTC](https://discuss.kubernetes.io/t/kubectl-exec-pod-i-t-bash-li-throws-an-error/6743/1 "2019-06-11T21:58:29Z")

</div>

We have an Amazon EKS cluster and worker nodes (4 instances). This was launched using the terraform-awm-eks module.

Recently, we had to upgrade to version 1.12.6 because Amazon was dropping support for 1.10.

We upgraded the EKS cluster using the instructions provided by Amazon, but had to upgrade the kubelet versions to 1.12.6 on the worker nodes manually because of certain application limitations.

However, post the upgrade…we are seeing an error running the kubectl exec command.

C:\>kubectl --insecure-skip-tls-verify exec cjoc-0 -i -t – bash -li  
Error from server: error dialing backend: x509: cannot validate certificate for 10.0.2.143 because it doesn’t contain any IP SANs

We are new to Kubernetes, any help is appreciated.

---

<div class="post-metadata">

**Author:** ![jaypipes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/jaypipes/32/1443_2.png) [@jaypipes](https://discuss.kubernetes.io/u/jaypipes)\
**Post date:** [June 12, 2019, 12:57pm UTC](https://discuss.kubernetes.io/t/kubectl-exec-pod-i-t-bash-li-throws-an-error/6743/2 "2019-06-12T12:57:46Z")

</div>

Hi Pragya!

Do you get a similar error when communicating with the k8s API server  
for other commands (e.g. kubectl get pods) or does this only happen with  
the kubectl exec command?

Best,  
-jay

---

<div class="post-metadata">

**Author:** ![pjaiswal](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@pjaiswal](https://discuss.kubernetes.io/u/pjaiswal)\
**Post date:** [June 12, 2019, 3:33pm UTC](https://discuss.kubernetes.io/t/kubectl-exec-pod-i-t-bash-li-throws-an-error/6743/3 "2019-06-12T15:33:09Z")

</div>

Happens only with exec and logs command. get pods and get nodes etc works fine!
