Question

Kubernetes nodes - unable to create wireguard in the Pod

I use the Digital Ocean managed Kubernetes cluster and would like to create a wireguard interface. For the command wg-quick up wg0

the error message is ‘RTNETLINK answers: Not supported’.

How would I go about getting a node that has the support for the wireguard kernel module?

Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Elijah Omolo
DigitalOcean Employee
DigitalOcean Employee badge
August 27, 2020
Accepted Answer

We currently run a debian-maintained Linux 4.19 whereas the in-tree wireguard didn’t make it into the kernel until 5.6. We’re currently looking into upgrading to Linux 5.7 which is consideration to be released soon.

Still looking forward to the wireguard server and client support in the Linux kernel and being able to deploy it from the Pods. Being able to use the module may require additional privileges. While you are at it, can you also look into using the eBPF feature of the node’s kernel?

A tangential questions: Is there a specific reason to use Debian as your OS instead of Ubuntu (say, licensing or the ability to customize…)

So anyway, this is 2023. I recently tested a pod which tried to create a wireguard interface and it worked. My kubernetes cluster has been automatically updated all along and so I guess anyone picking up the latest K8s would have no trouble having wireguard interfaces inside the pods.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel