Create kubernetes cluster behind http proxy

Is there a way to configure a http/https proxy when creating a cluster.
My servers are sitting behind the firewall and couldn’t access the internet to download all the packages.