Replies: 2 comments
-
@tobis1441 are you using an SSH key-pair with passphrase or a device like a Yubikey? If you are not doing either of these, then I would try explicitly defining the path to the SSH key-pair.
You may also verify that you have a need for a custom SSH port. Otherwise comment out the following line so the default port (22) is used.
If you do have an SSH key-pair with a passphrase or a device like a Yubikey, there are docs outlining how to handle this https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/blob/master/docs/ssh.md |
Beta Was this translation helpful? Give feedback.
-
@tobis1441 As @collinbentley1 mentioned, this is most likely an SSH issue. Follow the docs he pointed to and also search the issues. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am trying to setup a fresh kubernetes cluster. After following the README instructions (created snapshots in my Hetzner project for x86 and ARM using the script, added a ssh key to my Hetzner project, changed the configuration of my node setup in kube.tf, added my HCLOUD_TOKEN and so on), I applied this .tf file.
(I tried a few times already, also with debugging help of the KH Assistant)
I always get this error response after 10m of waiting:
╷
│ Error: local-exec provisioner error
│
│ with module.kube-hetzner.module.agents["0-0-agent-small"].hcloud_server.server,
│ on .terraform/modules/kube-hetzner/modules/host/main.tf line 64, in resource "hcloud_server" "server":
│ 64: provisioner "local-exec" {
│
│ Error running command 'timeout 600 bash <<EOF
│ until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PubkeyAuthentication=yes -i /tmp/g25ur08qxhb6by5rq3t3 -o ConnectTimeout=2 -p 187 [email protected] true 2> /dev/null
│ do
│ echo "Waiting for MicroOS to become available..."
│ sleep 3
│ done
│ EOF
│ ': exit status 124. Output: Waiting for MicroOS to become available...
│ Waiting for MicroOS to become available...
│ Waiting for MicroOS to become available...
│ Waiting for MicroOS to become available...
│ Waiting for MicroOS to become available...
One thing I have noticed:
When i go into the console via Hetzner dashboard of my control plane node, I saw that in the cloud-init script the OpenSSH daemon failed to start.
I assume this to be part of the issue. I CAN though connect manually to my node via exactly my configured ssh key.
Last thing:
Yesterday, one of my tries worked! I tried different things, and one single node cluster config worked, but i had to take it down again. Sadly I cannot exactly remember the config, but it wasnt much different than my current one.
Kube.tf file
Screenshots
No response
Platform
Mac
Beta Was this translation helpful? Give feedback.
All reactions