Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Controller fails to start if proxy variables are set #97

Open
netthier opened this issue Apr 27, 2023 · 1 comment
Open

Controller fails to start if proxy variables are set #97

netthier opened this issue Apr 27, 2023 · 1 comment

Comments

@netthier
Copy link

netthier commented Apr 27, 2023

Controller Version

v0.15.0

Kubernetes Version

v1.21.6+vmware.1

Bug description

If the controller is deployed with the HTTP_PROXY or HTTPS_PROXY variables set, the controller seemingly fails to start.
No logs are produced, but the status shows the following:

Readiness probe failed: Get "http://192.168.5.116:9440/readyz": dial tcp 192.168.5.116:9440: connect: connection refused
Liveness probe failed: Get "http://192.168.5.116:9440/healthz": dial tcp 192.168.5.116:9440: connect: connection refused

The controller starts up fine if those variables are not set, but then later fails reconciling deployments as it can't access the remote git repositories (due to a lack of proxy).

Steps to reproduce

Specify either HTTP_PROXY or HTTPS_PROXY variables in the deployment.

Relevant log output

No logs were produced
@netthier
Copy link
Author

netthier commented Apr 27, 2023

I suspect this may be due to the controller trying to access the Kubernetes API through the proxy, which won't work.
I tried adding .cluster.local to NO_PROXY, but that didn't help. I'll look into this further.

Update: Adding 10.96.0.1 to NO_PROXY fixed this issue.
Since the controller now directly pulls git repos from their sources, configuring a proxy might be something users want to do, so maybe documenting this somewhere would be useful?
Or at least some visible logs that indicate the Kubernetes API server cannot be reached.

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

No branches or pull requests

1 participant