source-controller icon indicating copy to clipboard operation
source-controller copied to clipboard

Need documentation on Support of Proxy

Open dilipmighty245 opened this issue 2 years ago • 1 comments

Hi Team,

It's tough to understand how HTTPS_PROXY works in source controller, what is that exactly, how can I leverage for my use case: I need to access a github in corporate network.

I tried creating a proxy ( Ngnix) for github.com and tried by passing the env vars in the deployment: `

  • name: HTTPS_PROXY value: http://proxy.github.com `

somehow, its not working with http /, getting the following error:

{"level":"error","ts":"2023-02-16T10:32:21.549Z","msg":"Failed to get API Group-Resources","error":"Get \"https://10.10.0.1:443/api?timeout=32s\": Bad Request"} {"level":"error","ts":"2023-02-16T10:32:21.549Z","logger":"setup","msg":"unable to start manager","error":"Get \"https://10.10.0.1:443/api?timeout=32s\": Bad Request"}

Kindly help me with the documentation

dilipmighty245 avatar Feb 16 '23 10:02 dilipmighty245

See https://fluxcd.io/flux/cheatsheets/bootstrap/#using-https-proxy-for-egress-traffic

stefanprodan avatar Feb 16 '23 10:02 stefanprodan