Deploying MicroShift behind Proxy

How to configure the host OS so MicroShift can work behind a proxy.

When deploying MicroShift behind a proxy, configure the host OS to use the proxy for both yum and CRI-O.

Configuring HTTP(S) proxy for yum

To configure yum to use a proxy, add the following to /etc/yum.conf:


Configuring HTTP(S) proxy for CRI-O or Podman

CRI-O and Podman are Go programs that use the built-in net/http package. To use an HTTP(S) proxy you need to set the HTTP_PROXY and HTTPS_PROXY environment variables and optionally the NO_PROXY variable to exclude a list of hosts from being proxied). For example, add the following to /etc/systemd/system/crio.service.d/00-proxy.conf:


Restart CRI-O:

sudo systemctl restart crio
Last modified May 24, 2022 at 4:02 PM PST : typo do -> to (#168) (77030fc)
Last modified May 24, 2022 at 4:02 PM PST : typo do -> to (#168) (77030fc)