-
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
kubectl_localhost get wrong binary when ansible host arch is different from deployed cluster #11608
Comments
beautiful |
/help |
@tico88612: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/assign |
Hi @noama-nv roles/kubespray-defaults/defaults/main/main.yml:385:kubectl_localhost: false So do you have any other custom configurations on here? Br, Leeon |
Today, I tried the localhost mode again, and I'm really puzzled by how Kubespray has designed this feature. So far, the latest version has been pretty user-unfriendly. It's just not practical for installing a Kubernetes cluster on nodes without internet access. Specifically, it's unable to install any RPM packages via yum; you need your own local yum repository to get things working properly, which feels pretty clunky. This feature has only managed to support offline installation of Kubernetes-related binaries. If they want to keep this feature, I think the community needs to fully develop this part instead of leaving it as a half-baked solution
Target host information: Text from dowloads.md There is also a "pull once, push many" mode as well:
|
What happened?
when enable kubectl_localhost and ansible host arch is x86_64 and deploy a kubernetes cluster on aarch64 systems it copy the binary from the host.
binary from aarch64 host is not got for x86_64 ansible host
error:
kubectl: cannot execute binary file: Exec format error1
https://github.com/kubernetes-sigs/kubespray/blob/master/roles/kubernetes/client/tasks/main.yml#L90
What did you expect to happen?
when kubectl_localhost enable download correct arch binary to the ansible host
How can we reproduce it (as minimally and precisely as possible)?
1x ansible host x86_64 arch
1x controller node aarch64 arch
deploy kubespray with kubectl_localhost
OS
Ubuntu2204
Version of Ansible
2.17.0
Version of Python
3.11
Version of Kubespray (commit)
master
Network plugin used
calico
Full inventory with variables
Command used to invoke ansible
ansible-playbook -i inventory/arm/hosts.yaml cluster.yml
Output of ansible run
Anything else we need to know
No response
The text was updated successfully, but these errors were encountered: