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?

gefragt vor 6 Monaten155 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen