If you need to inspect kubectl
network traffic, you can add verbose logging
options (-v=8
or higher) to any kubectl
command and you can see the URLs,
request and response body/headers (except authorization). These headers usually
are not complete, because more headers are added after the request is logged. To
have a complete view, you need to intercept traffic using a local proxy like
mitmproxy.
Read More →