# How can I install a kURL embedded cluster in an environment with an HTTP proxy?

**URL:** <https://community.replicated.com/t/how-can-i-install-a-kurl-embedded-cluster-in-an-environment-with-an-http-proxy/519>\
**Category:** Supporting your customers\
**Created:** [April 14, 2021, 11:43pm UTC](https://community.replicated.com/t/how-can-i-install-a-kurl-embedded-cluster-in-an-environment-with-an-http-proxy/519 "2021-04-14T23:43:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dex](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dex/32/26_2.png) [@dex](https://community.replicated.com/u/dex)\
**Post date:** [April 14, 2021, 11:43pm UTC](https://community.replicated.com/t/how-can-i-install-a-kurl-embedded-cluster-in-an-environment-with-an-http-proxy/519/1 "2021-04-14T23:43:25Z")

</div>

I was under the impression that setting `HTTP_PROXY` and friends would be sufficient to stand up a kURL cluster in an environment requiring a proxy for egress.

I’ve tried the following

```auto
export HTTP_PROXY=kots-field-labs-squid-proxy:3128
export HTTPS_PROXY=kots-field-labs-squid-proxy:3128
curl -sSL https://k8s.kurl.sh/dx411-dex-lab1-e6-proxy | sudo bash

```

I have verified that the `curl` without the ` | bash` returns the install script

with `| bash -x`, it stalls at this line:

```auto
++ curl -IfsSL https://kurl-sh.s3.amazonaws.com/dist/kurl-bin-utils-v2021.04.13-0.tar.gz
++ grep -i etag:
++ sed -r 's/.*"(.*)".*/\1/'
^C

```

---

<div class="post-metadata">

**Author:** ![dmitriy](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dmitriy/32/16_2.png) [@dmitriy](https://community.replicated.com/u/dmitriy)\
**Post date:** [April 14, 2021, 11:56pm UTC](https://community.replicated.com/t/how-can-i-install-a-kurl-embedded-cluster-in-an-environment-with-an-http-proxy/519/2 "2021-04-14T23:56:45Z")

</div>

I think this will work better if proxy info is in curl config file

```auto
$ cat ~/.curlrc
proxy = 10.128.0.3:3128
noproxy = localhost,127.0.0.1,10.96.0.0,10.0.0.0/8,10.138.0.91
```

---

<div class="post-metadata">

**Author:** ![dex](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dex/32/26_2.png) [@dex](https://community.replicated.com/u/dex)\
**Post date:** [April 14, 2021, 11:59pm UTC](https://community.replicated.com/t/how-can-i-install-a-kurl-embedded-cluster-in-an-environment-with-an-http-proxy/519/3 "2021-04-14T23:59:12Z")

</div>

Dmitriy’s `curlrc` answer works, or now I’ve found we probably need `sudo -E`:

> **[Passing Environment Variables to Sudo Command](https://www.petefreitag.com/item/877.cfm)**

> The sudo has a handy argument -E or --preserve-env which will pass all your environment variables into the sudo environment.
