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
I may be missing something obvious, but I followed the steps in the README, and all resources are created correctly on Hetzner.
However, when I try to run terraform output kubeconfig, I get no output at all, so I can't connect kubectl to my cluster:
> terraform output kubeconfig
│ Warning: No outputs found
│
│ The state file either has no outputs defined, or all the defined outputs are empty. Please define an output in your configuration with the `output` keyword and run `tofu refresh`for it to become
│ available. If you are using interpolation, please verify the interpolated value is not empty. You can use the `tofu console`command to assist.
EDIT:
This is caused because the terraform apply process never finishes. I get stuck in an infinite loop of "Waiting for MicroOS to become available..." until the script is killed, so the output is never generated. Inside Hetzner's Web UI, I can see the servers are created and are ready.
Error: local-exec provisioner error
│
│ with module.kube-hetzner.module.control_planes["1-0-control-plane-nbg1"].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/rtor37yb8bculxcxba2v -o ConnectTimeout=2 -p 2220 [email protected] true 2> /dev/null│ do│ echo "Waiting for MicroOS to become available..."│ sleep 3│ done│ EOF│ ': signal: killed.
Previously, I ran into the issue that the default file creates more servers than it's allowed by new accounts on Hetzner (they allow only 5). So I removed the redundant control planes, and now my resources are under the limits. However, I'm still stuck in the infinite loop.
I tried with SSH ports 2220 and the default 22.
I also installed coreutils and am still getting the same issue.
Hi, all!
I may be missing something obvious, but I followed the steps in the README, and all resources are created correctly on Hetzner.
However, when I try to run
terraform output kubeconfig
, I get no output at all, so I can't connect kubectl to my cluster:EDIT:
This is caused because the
terraform apply
process never finishes. I get stuck in an infinite loop of "Waiting for MicroOS to become available..." until the script is killed, so the output is never generated. Inside Hetzner's Web UI, I can see the servers are created and are ready.Config File
When I set create_kubeconfig to true, it doesn't create one either.
The text was updated successfully, but these errors were encountered: