-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding workers fails on Wireguard configuration #329
Comments
yep. Ran into the same problem. Ubuntu borked the wireguard module Solution is apparently to install hwe (-> newer Kernel): It works, but... don't know how to do that for a node |
So.. easiest fix: patch hetzner-kube to use Ubuntu 20.04LTS |
I've tried to use Ubuntu 20.04LTS but I get another error:
|
Strange.... I just installed multiple new nodes and it worked just fine... |
@abarthol have a look at https://github.com/tmemenga/hetzner-kube/tree/ubuntu-20-04, i was able to get past that error. But i still need to check if the cluster is really operational. |
If this works, I'd love to see a PR if you don't mind |
Thanks @tmemenga. Your branch works for creating a new cluster. Please make a pull request to add this to the main project. Although I have not tested to add a new node to an existing (Ubuntu 16.04 LTS or 18.04 LTS) cluster. |
After successful cluster setup with Ubuntu 20.04 LTS I recognized a problem with canal. The pods did not startup correctly. The error message was:
I hat to set this to make it work:
|
I'm running a mixed cluster right now, without any issues (control plane is 18.04 and 2 out of 6 nodes are 20.04) |
Is it possible to manually add node to the cluster, that has been created with hetzner-kube utility now? |
i also had to issue a kubectl -n kube-system set env daemonset/canal FELIX_IGNORELOOSERPF=true to stop canal from contstantly restarting. But it seems this is something you should not do on systems other than DEV ? https://alexbrand.dev/post/creating-a-kind-cluster-with-calico-networking/
|
I get it working by changing /etc/sysctl.d/10-network-security.conf as follow: net.ipv4.conf.default.rp_filter=1 |
Looks like wireguard is borked in the 18.04 distro. Here's a cloud-init script that should bootstrap your cluster successfully. my-k8s-cluster-cloud-init #cloud-config
package_update: true
runcmd:
- add-apt-repository ppa:wireguard/wireguard
- apt-get update
- apt-get install -y --install-recommends linux-generic-hwe-18.04
- apt-get install -y wireguard wireguard-dkms wireguard-tools
- modprobe wireguard
- lsmod | grep wireguard Can be invoked via;
|
No, sorry, that cloud-init is not a working fix |
I got it working with:
hetzner-kube cluster create --name kubernetes -k YOUR-SSH-KEY --master-server-type cx21 -m 3 --worker-server-type cx21 --node-cidr a.b.c.d/16 -w 5 --ha-enabled --cloud-init /path/to/cloud-init.yml
|
Incorporated the cloud-config from xetys#329 (comment)
this command didn't work - hetzner-kube cluster create --name hetzner --ssh-key mctl --cloud-init ./my-k8s-cluster-cloud-init |
I fixed this issue in #339 |
When adding a worker the install process stops at Wireguard configuration.
command:systemctl enable wg-quick@wg0 && systemctl restart wg-quick@wg0 && systemctl enable overlay-route.service && systemctl restart overlay-route.service stdout:Created symlink /etc/systemd/system/multi-user.target.wants/wg-quick@wg0.service → /lib/systemd/system/wg-quick@.service. Job for wg-quick@wg0.service failed because the control process exited with error code. See "systemctl status wg-quick@wg0.service" and "journalctl -xe" for details.
This seems to be related to: adrianmihalko/raspberrypiwireguard#11
The text was updated successfully, but these errors were encountered: