kubitect icon indicating copy to clipboard operation
kubitect copied to clipboard

added HTTPS_PROXY env passing to terraform process

Open mjekrami opened this issue 10 months ago • 5 comments

This is usefull for airgap environments that Terraform process needs to be able to communicate with proxy

mjekrami avatar Apr 15 '24 15:04 mjekrami

Could you help me understand the use case for this?

If Kubitect is used in air gapped environment, the Kubernetes deployment would still fail, since it would try to download required packages from non-private repository?

MusicDin avatar Apr 15 '24 16:04 MusicDin

Hi MusicDin I've actually changed the source code for my needs (Hashicorp is banned in where i live) i thought the others might need a proxy mechanism to bypass some of restrictions (networking etc ...) But you are right on the Kubernetes deployment as well which i'm working on ...

mjekrami avatar Apr 16 '24 12:04 mjekrami

Makes sense, this issue was already reported once, but didn't get solved (https://github.com/MusicDin/kubitect/issues/171).

Does only Terraform block you? I mean, using HTTPS_PROXY you bypass the restrictions for Terraform, but does Kubespray than run as expected?

MusicDin avatar Apr 16 '24 13:04 MusicDin

No kubespray also has it's own problems which i have to look into. Terraform and ghcr is banned in my country.

mjekrami avatar Apr 16 '24 22:04 mjekrami

Thanks. Let me know if you run into any issues with air gapping Kubespray

MusicDin avatar Apr 16 '24 23:04 MusicDin