Skip to content

Commit 1649da8

Browse files
authored
docs: Document proxy environment variable usage. (#733)
* docs: Document proxy environment variable usage. * fix typo in proxy setting doc
1 parent 6edc70f commit 1649da8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

site/content/docs/user-guide/configuration.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,17 @@ variable in your `~/.bashrc`, `~/.bash_profile`, or `~/.zshrc`:
4343
export KREW_DEFAULT_INDEX_URI='[email protected]:foo/custom-index.git'
4444
```
4545

46+
## Configure network proxy {#custom-network-proxy}
47+
48+
If you want to use Krew with an HTTP proxy, you can configure environment
49+
variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY. Behavior of these
50+
environment variables are explained [here][httpproxy].
51+
52+
```shell
53+
export HTTP_PROXY="proxy-ip:port"
54+
export HTTPS_PROXY="proxy-ip:port"
55+
export NO_PROXY="ip1,ip2:port2,.example.com"
56+
```
57+
4658
[ki]: https://github.com/kubernetes-sigs/krew-index
59+
[httpproxy]: https://pkg.go.dev/golang.org/x/net/http/httpproxy#Config

0 commit comments

Comments
 (0)