eldadru / ksniff

Kubectl plugin to ease sniffing on kubernetes pods using tcpdump and wireshark
Apache License 2.0
3.13k stars 186 forks source link

Add --request-timeout CLI flag to customize k8s api client timeout #180

Open mgerasimchuk opened 3 months ago

mgerasimchuk commented 3 months ago

These changes fix the https://github.com/eldadru/ksniff/issues/179 issue by adding --request-timeout CLI flag

Example of usage ksnif after merging these changes:

kubectl sniff --request-timeout 520s --pod-creation-timeout 520s -p -n default nginx-69f9fb6f84
mgerasimchuk commented 3 months ago

Hi @bostrt,

Could you have a look?

PS:\ I build it and tested it in the real case, new flag works and solved my issue.