-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Document proxy environment variable usage. (#733)
* docs: Document proxy environment variable usage. * fix typo in proxy setting doc
- Loading branch information
1 parent
6edc70f
commit 1649da8
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,17 @@ variable in your `~/.bashrc`, `~/.bash_profile`, or `~/.zshrc`: | |
export KREW_DEFAULT_INDEX_URI='[email protected]:foo/custom-index.git' | ||
``` | ||
|
||
## Configure network proxy {#custom-network-proxy} | ||
|
||
If you want to use Krew with an HTTP proxy, you can configure environment | ||
variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY. Behavior of these | ||
environment variables are explained [here][httpproxy]. | ||
|
||
```shell | ||
export HTTP_PROXY="proxy-ip:port" | ||
export HTTPS_PROXY="proxy-ip:port" | ||
export NO_PROXY="ip1,ip2:port2,.example.com" | ||
``` | ||
|
||
[ki]: https://github.com/kubernetes-sigs/krew-index | ||
[httpproxy]: https://pkg.go.dev/golang.org/x/net/http/httpproxy#Config |