Terraform hangs on creating the servers #870
Replies: 8 comments 4 replies
-
Normally the cluster is set up <10 minutes (< 5 minutes if you are lucky), 45 minutes indicates something has gone wrong. To find out what the reason for the problem is you need to collect some informations:
|
Beta Was this translation helpful? Give feedback.
-
@sebastianlutter Hi and thanks for answering this quick.
Is it helping? |
Beta Was this translation helpful? Give feedback.
-
did a second test: in console, the last logs before it hangs are:
ssh into it :
looking at it I see many users.. |
Beta Was this translation helpful? Give feedback.
-
I then tried to use cax servers (ARM) but then when I run terraform apply I get the
|
Beta Was this translation helpful? Give feedback.
-
@vinnytwice In your case you need to upgrade! (See pinned discussions) About that general hanging issues, it seems that creating a new Hetzner project and using that fixes it. |
Beta Was this translation helpful? Give feedback.
-
@mysticaltech what do I need to upgrade? |
Beta Was this translation helpful? Give feedback.
-
Ok I restarted fresh, created both a new project and a new Hetzner project. So first test.. left the kube.tf as is..just inserted the token from the new Hetzner project and all went well .. apart from a couple of Primari IP limit exceeded and 1 Server limit exceeded , but I guess that it is because of free credits I'm using. Second test 1 cax11 control plane + cax21 agent => success!! it did created the infra and installed everything without errors. Third test Single node cax21 => success again! So I think we can close it. I have two questions dough for which I haven't found an answer yet. 2nd: instead of using Many many thanks, I was going crazy spinning up a cluster in Hetzner as I want to migrate from AKS, but with |
Beta Was this translation helpful? Give feedback.
-
Lovely! thank you so much! Thank you so much for your help, and for Kubernetes-hetzner. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm trying to create a cluster on Hetzner Cloud and I'm customising the
kube.tf
file just the minimum:1 cpx31 control_plane in fsn1, 1 cpx21 agent in fsn1, ingress_ controller=ngnx,create_kubeconfig = true.
Terraform hangs on creating both the agent and the control plane servers, but in the Hetzner console I can see that they do get created dough ( see screenshots ).
and when I stop terraform the error is:
I also tried creating a single node by bringing the count of the agent to
0
as stated in# If you want to have a single node cluster, have one control plane nodepools with a count of 1, and one agent nodepool with a count of 0.
, settingautomatically_upgrade_k3s
andautomatically_upgrade_os
to `false but still the process hangs...and when I stop terraform the error is:
Looking at #714 I tried specifying the version as
version = "2.0.9"
inkube.tf
but still same results.What else can I look into?
Many thanks
Kube.tf file
Screenshots
Platform
MacBook Air M1
Beta Was this translation helpful? Give feedback.
All reactions