aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

added proxy-url option to eks update-kubeconfig

Open bendudz opened this issue 2 years ago โ€ข 5 comments

Issue #7622:

Description of changes: Added the option of specifying a proxy-url such that it adds an entry to the context when updating kubeconfig via aws cli.

aws eks update-kubeconfig --name mycluster --proxy-url socks5://<username>:<password>@<proxy_url>:<proxy_port>

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

bendudz avatar Jan 31 '23 15:01 bendudz

Hi @bendudz, apologies for the delay, may I trouble you for a rebase and refactor? Then we'll go ahead with the review and merge, thanks ๐Ÿ˜„

yuxiang-zhang avatar Sep 05 '23 16:09 yuxiang-zhang

Hi @bendudz, apologies for the delay, may I trouble you for a rebase and refactor? Then we'll go ahead with the review and merge, thanks ๐Ÿ˜„

Hi @yuxiang-zhang I've given it a go, it's been months since I looked at this. Rebased to develop branch and refactored my PR. Hopefully that will be sufficient.

bendudz avatar Sep 07 '23 15:09 bendudz

Thank you! I'll look into getting this merged

Hi @yuxiang-zhang any idea when this can be merged please?

bendudz avatar Oct 02 '23 06:10 bendudz

meanwhile, as a workaround, you can use:

kubectl config set clusters.<cluster>.proxy-url socks5://localhost:1080
kubectl config set clusters.<cluster>.proxy-url http://localhost:8888

marinflorin avatar Nov 10 '23 07:11 marinflorin

Kindest little bump - would it be possible to revive this PR? This would help with automation, reducing the need for manual edits. Thank you ๐Ÿงก

Walther avatar Apr 08 '25 12:04 Walther

Sorry about the delay getting to this, we were just pointed at it internally. Merged into develop for the next V1 release, I'll reply again with the version number once it's out. The maintainers can then also port to V2.

ashovlin avatar Sep 30 '25 16:09 ashovlin

--proxy-url has been added to V1 in 1.42.42 and V2 in 2.31.7. Thanks again @bendudz for the contribution!

ashovlin avatar Oct 03 '25 19:10 ashovlin