Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy configuration is not honored by image-reflector-controller #322

Open
zzvara opened this issue Nov 9, 2022 · 2 comments
Open

Proxy configuration is not honored by image-reflector-controller #322

zzvara opened this issue Nov 9, 2022 · 2 comments

Comments

@zzvara
Copy link

zzvara commented Nov 9, 2022

The image-reflector-controller adds the following status to an ImageRepository:

canonicalImageName: example.com/whatnot/image
  conditions:
    - lastTransitionTime: '2022-11-09T11:59:38Z'
      message: 'Get "https://example.com/v2/": context deadline exceeded'
      reason: ReconciliationFailed
      status: 'False'
      type: Ready
  observedGeneration: 1

All components within the flux-system go their proxy settings injected by kyverno as follows:

  • HTTP_PROXY
  • HTTPS_PROXY
  • NO_PROXY
  • http_proxy
  • https_proxy
  • no_proxy

The same environment variables and as they are injected, work on all other Pods, except flux Pods. For example, when called from flux controller pods, using wget example.com results in 400 Bad Request from the proxy server. Going into all flux Pods, I can confirm that env prints the proper proxy settings. This issue with wget may be related to Alpine #10446 or Docker Alpine #51.

The context deadline exceeded above may suggest that the image-reflector-controller does not use the proxy settings after all.

Does the image-reflector-controller support proxy settings? And if so, how?

(I found evidence for that in the source-controller but not here.)

@BarrieShieh
Copy link

BarrieShieh commented Apr 7, 2023

The same here, seems the wget pod using is from busybox and that version ignored the no_proxy environment variables

@stefanprodan
Copy link
Member

To configure HTTP/S proxies please see https://fluxcd.io/flux/cheatsheets/bootstrap/#using-https-proxy-for-egress-traffic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants