Following the guide, I found that this was not working in my setup (Linux x86-64, running bash):
alias k="HTTPS_PROXY=localhost:8888 kubectl"
I changed to
alias k="HTTPS_PROXY=http://localhost:8888 kubectl"
because of the following error message when running any command with kubectl:
Unable to connect to the server: proxyconnect tcp: tls: first record does not look like a TLS handshake
I replicated the issue with curl -v -I --proxy https://localhost:8888 google.com:
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Is highly possible that I'm missing something.