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
HTTP_PROXY environment variables are unset for kubeadm #856
Comments
Probably relevant: |
@jakolehm @jnummelin This was deliberately and explicitly done in #395 - should it be reverted? |
(can confirm that currently for example |
@madddi @kke #395 included this change because in most (all?) cases we want to have direct communication between different kubernetes components. It has a side-effect that kubernetes components won't get configured proxy for external service either... which is a bug. Not sure if we can generate |
Or maybe we shouldn't |
In any case, the Now it will persist |
Yeah, we should unset all. |
It could be made optional if necessary, but let's start with unsetting all. |
The Kubernetes components should of course communicate directly with each other. As described, we actually need the variables set for kubeadm:
In a scenario where this is necessary I'd leave the correct |
#862 Made the unsetting optional via |
What happened:
HTTP_PROXY
(and similar) environment variables are not configured for components configured in kubelet manifests.What you expected to happen:
When configured, the proxy server should also be set for the Kubernetes control plane components.
How to reproduce it (as minimally and precisely as possible):
HTTP_PROXY
,HTTPS_PROXY
,NO_PROXY
etc. for a hostAnything else we need to know?:
The variables are explicitly
unset
in kubeadmin-init.sh and kubeadm-reconfigure.sh. This was changed in #395. Not all variants of http proxy environment variables are unset there, which leads to inconsistent behavior depending on the spelling. When these lines are removed,kubeadm
configures proxy servers correctly.In very restricted environments with no internet access it's necessary to communicate with cloud-provider APIs via a proxy server. This is why we explicitly want to configure the server for all components. A correct
no_proxy
environment variable excluding all internal resources is of course necessary then.Environment:
pharos --version
):2.0.3+oss
aws
The text was updated successfully, but these errors were encountered: