-
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
remove_node.yml does not work - No kubernetes.core.k8s module in Ansible 2.9 #8280
Comments
Broken by #8244 |
Hi, I am checking it, I am realizing I tested it with ansible 2.10 which has moved into the I could manage it with a Not sure right now if |
What about using the https://github.com/kubernetes-sigs/kubespray/blob/master/library/kube.py plugin ? Like kubespray/roles/kubernetes-apps/metallb/tasks/main.yml Lines 44 to 48 in bdb923d
|
Perfect, I will deliver a solution that provides the same results using
this plugin
|
Well @floryut , I am checking Meaning that the best approach without updating this plugin, which will lead to it doing same things done by |
Environment:
Cloud provider or hardware configuration:
On-premise
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Version of Ansible (
ansible --version
):ansible 2.9.16
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
Version of Python (
python --version
):python version = 3.6.8 (default, Nov 16 2020, 16:55:22) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Kubespray version (commit) (
git rev-parse --short HEAD
):4ef2cf4
Network plugin used:
calico
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):Command used to invoke ansible:
ansible-playbook -i inventory/<CLUSTER_NAME>/hosts.yaml remove-node.yml -e node=node1
Output of ansible run:
Anything else do we need to know:
Using Ansible 2.9 fails running remove-node.yml.
in version 2.9 there is no kubernetes.core.k8s module, while 2.9 is a supported versions.
The text was updated successfully, but these errors were encountered: