You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
the cluster installed via kubespray is not working when utilizing the hcloud-cloud-controller-manager.
I'm using the following configuration and getting the following error:
E0628 10:53:10.820756 1 node_controller.go:236] error syncing 'k8s-worker-stg-04.test.local': failed to get node modifiers from cloud provider: provided node ip for node "k8s-worker-stg-04.test.local" is not valid: failed to get node address from cloud provider that matches ip: 10.0.1.1, requeuing
The Hetzner Documentation describes the following
If you manage the network yourself it might still be required to let the CCM know about private networks. You can do this by adding the environment variable with the network name/ID in the CCM deployment.
Hi,
the cluster installed via kubespray is not working when utilizing the hcloud-cloud-controller-manager.
I'm using the following configuration and getting the following error:
The Hetzner Documentation describes the following
(source: https://github.com/hetznercloud/hcloud-cloud-controller-manager#networks-support)
After adding the network name the following error occurs:
error running controllers: invalid CIDR[0]: <nil> (invalid CIDR address: )
This could be solved by adding an extra var described here:
hetznercloud/hcloud-cloud-controller-manager#328 (comment)
Furthermore when looking at the source code I noticed that currently the cloud-controller can only be used if the kubespray Terraform is used:
kubespray/roles/kubernetes-apps/external_cloud_controller/hcloud/templates/external-hcloud-cloud-secret.yml.j2
Line 10 in 8895e38
the var is gathered from here:
kubespray/contrib/terraform/hetzner/modules/kubernetes-cluster/output.tf
Line 25 in 8895e38
If it is welcome I would create a Pull Request for this issue since I already solved this issue on my side.
Here's my env in case any of this is of any relevancy:
Environment:
Cloud provider or hardware configuration: Hetzner
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
): Ubuntu 22.04.2 LTSVersion of Ansible (
ansible --version
): using quay.io/kubespray/kubespray:v2.22.0Version of Python (
python --version
): using quay.io/kubespray/kubespray:v2.22.0Kubespray version (commit) (
git rev-parse --short HEAD
): f8b93faNetwork plugin used: default
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 playbooks/$ENVIRONMENT/deploy.yml -i inventories/$ENVIRONMENT/hcloud.yml
Output of ansible run:
The text was updated successfully, but these errors were encountered: