How to resolve tls error when running kubectl logs or kubectl exec?

0

I recently provisioned an EKS cluster using the AWS CLI on an EC2 instance. The EC2 instance has an instance profile that was used to create the EKS cluster. I can access the EC2 instance via SSM and, because it is inside the EC2 that contains the cluster owener role, I can execute several kubectl commands. However, when trying to run commands like kubectl get logs pod-name or kubectl exec, I'm encountering a TLS-related error. Could anyone guide me on the cause of this problem and possible solutions?

asked 5 months ago150 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions