For quite some time i am trying to get the following Cluster-Configuration to work:
HA-cluster with 3 master nodes in germany (nbg1 and fsn1)
One worker-pool for basic workloads
One autoscaled storage-pool for longhorn node-storage
One autoscale worker-pool for all workloads
Wireguard-encryption within the cluster
No external (hetzner) load-balancer
Only Metallb-Loadbalancer
My plan ist to have only wireguard ports open in the firewall to access the cluster via vpn-only for security reasons.
I have several issues with the cluster-creation first i had a lot of problems with the automatic creation of nodes with selinux, so i deactivated selinux in the kube.tf. After that i get the following error:
module.kube-hetzner.null_resource.agents["0-0-worker-pool"] (remote-exec): Failed to enable unit: Unit iscsid.service does not exist
Since it did not install the package-properly i went in and installed the packages by hand with
That leads to the creation of the cluster (3 master-nodes and one worker) but the longhorn and autoscaler pods and services are not created since i think these need open-iscsci to work properly.
I have changed so many options (enable and disable wireguard for example) i redid the cluster-config about 30 times. I even tried the chatgpt-assistant to help me create a valid configuration for my requirenments but it always failed creating the right syntax for the kube.tf (mainly problems with the taints and labels as a string map for example).
Can you help my find out what is wrong in my configuration and what i have to change to get the cluster for the private-cloud to work? Thank you very much.
Additional information:
I reinstalled the management-machine which i use to deploy the cluster several times
the ssh-key creation is done by ssh-keygen -t ed25519
i installed terraform, packer, kubectl, helm, hcloud-cli by installing the newest binaries for the websited
tried the same with brew and apt and snap - same results
I had some other problems while creating the cluster which seems to be caused by problems with the hetzner api which are resolved now.
Thank you very much for your time and effort to create such a wonderfull program - would love to use it
best regards
Gregor
Description
For quite some time i am trying to get the following Cluster-Configuration to work:
My plan ist to have only wireguard ports open in the firewall to access the cluster via vpn-only for security reasons. I have several issues with the cluster-creation first i had a lot of problems with the automatic creation of nodes with selinux, so i deactivated selinux in the kube.tf. After that i get the following error:
module.kube-hetzner.null_resource.agents["0-0-worker-pool"] (remote-exec): Failed to enable unit: Unit iscsid.service does not exist
Since it did not install the package-properly i went in and installed the packages by hand with
But that did not fix it either.
That leads to the creation of the cluster (3 master-nodes and one worker) but the longhorn and autoscaler pods and services are not created since i think these need open-iscsci to work properly.
I have changed so many options (enable and disable wireguard for example) i redid the cluster-config about 30 times. I even tried the chatgpt-assistant to help me create a valid configuration for my requirenments but it always failed creating the right syntax for the kube.tf (mainly problems with the taints and labels as a string map for example).
Can you help my find out what is wrong in my configuration and what i have to change to get the cluster for the private-cloud to work? Thank you very much.
Additional information:
Thank you very much for your time and effort to create such a wonderfull program - would love to use it best regards Gregor
Kube.tf file
Screenshots
No response
Platform
Ubuntu Linux Server Image 24.04 on Hetzner-Cloud