1

I want to decrypt kubectl requests to kubernetes api server (over tls) with wireshark (for exec -it subcommand). I found that there's SSLKEYLOGFILE variable that can be used by wireshark for decrypting tls packets but kubectl doesn't log tls session keys into that file. Is there any option for kubectl to log sslkeys into that file? or is there any other option for capturing and viewing exec raw network packets?

Thanks

Babak
  • 19
  • 1
  • 2

1 Answers1

0
  • If you requirement is just to capture the requests betten apiserver & kubectl command. add --v=11 it will show all the requests that are happening between kubectl & apiserver.

Ex:

kubectl get nodes --v=11 
confused genius
  • 2,876
  • 2
  • 16
  • 29