-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
task failed Set no_proxy to all assigned cluster IPs and hostnames #10825
Comments
I think the various no_proxy stuff don't support cidr notation, unfortunately... |
I'm facing the same bug even with single domain in no_proxy. |
I have the same issue with v2.24.0. I have used this configuration in many prior versions and there is no issue http_proxy: "http://sample.proxy:23453"
https_proxy: "http://sample.proxy:23453"
# https_proxy_cert_file: ""
## Refer to roles/kubespray-defaults/defaults/main/main.yml before modifying no_proxy
# no_proxy: ""
## If you need exclude all cluster nodes from proxy and other resources, add other resources here.
additional_no_proxy: "neor.cloud,.neor.cloud,.neor.space,.ir" |
When trying to scale a cluster on 1.24.6, I receive the below error on ONLY couple of nodes, whereas all other hosts where added w/o any issues. TASK [kubespray-defaults : Set no_proxy to all assigned cluster IPs and hostnames] *** Any pointers on what could be the issue? |
Same issue with v2.24.0
|
It looks like the logic in the https://github.com/kubernetes-sigs/kubespray/blob/master/roles/kubespray-defaults/tasks/main.yaml has changed.
This additional |
Could you check if the linked PR fix the issue ?
|
What happened?
with 2.24 we run into this error, while collecting facts
we use some proxy configs
To make it run again, we have to set gather_facts: true in task "Bootstrap hosts for Ansible"
https://github.com/kubernetes-sigs/kubespray/blob/master/playbooks/facts.yml#L6
What did you expect to happen?
Task kubespray-defaults : Set no_proxy to all assigned cluster IPs and hostnames] should run
How can we reproduce it (as minimally and precisely as possible)?
un all.yml defined some proxy vars
OS
Linux 5.4.0-169-generic x86_64
ubuntu 20.04
Version of Ansible
ansible
=9.1.0=2.16.2ansible-core
Version of Python
3.11.7
Version of Kubespray (commit)
v2.24.0
Network plugin used
calico
Full inventory with variables
No response
Command used to invoke ansible
No response
Output of ansible run
No response
Anything else we need to know
No response
The text was updated successfully, but these errors were encountered: