Closed casperakos closed 2 years ago
Thanks for reporting this @casperakos.
The issue was generated by a last minute update to Hetzner CCM that was missing some newly mandatory args.
You should be able to fix things by manually changing to the older v1.12.1
CCM image or wait for the new kOps version to be released with the #14309 fix.
Workaround:
kubectl -n kube-system patch deployments.apps hcloud-cloud-controller-manager -p \
'{
"spec" : {
"template" : {
"spec" : {
"containers" : [
{
"name" : "hcloud-cloud-controller-manager",
"command" : [
"/bin/hcloud-cloud-controller-manager",
"--allocate-node-cidrs=true",
"--allow-untagged-cloud=true",
"--cloud-provider=hcloud",
"--cluster-cidr=100.64.0.0/10",
"--configure-cloud-routes=false",
"--leader-elect=false",
"--v=2",
"--use-service-account-credentials=true"
]
}
]
}
}
}
}'
/kind bug
1. What
kops
version are you running? The commandkops version
, will display this information.Client version: 1.25.0
2. What Kubernetes version are you running?
kubectl version
will print the version if a cluster is running or provide the Kubernetes version specified as akops
flag.v1.25.1
3. What cloud provider are you using?
Hetzner
4. What commands did you run? What is the simplest way to reproduce this issue?
kops create cluster --name=my-cluster.example.k8s.local \ --ssh-public-key=~/.ssh/id_rsa.pub --cloud=hetzner --zones=nbg1 \ --image=ubuntu-20.04 --networking=cilium --network-cidr=10.10.0.0/16
5. What happened after the commands executed?
Cluster has been created but 2 out five nodes are not joining the cluster. Cloud controller manager has this error :
error running controllers: failed to parse cidr value:"" with error:invalid CIDR address:
6. What did you expect to happen?All nodes join the cluster
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml
to display your cluster manifest. You may want to remove your cluster name and other sensitive information.8. Please run the commands with most verbose logging by adding the
-v 10
flag. Paste the logs into this report, or in a gist and provide the gist link here.9. Anything else do we need to know?