K3s v1.31.2-k3s1
-> v1.31.3-k3s1
breaking /dev/net/tun
setup (Investigation)
#2616
Replies: 3 comments 1 reply
-
I wasnt able to apply the fix. Here are some stripped down files if anyone happens to want to recreate the problem.
# k3d-config.yaml
apiVersion: k3d.io/v1alpha5
kind: Simple
metadata:
name: k3s-1.31.3-test
servers: 1
agents: 0
image: rancher/k3s:v1.31.2-k3s1 # changing to rancher/k3s:v1.31.3-k3s1 causes aforementioned error
network: test-network # Chart.yaml
apiVersion: v2
name: k3s-1.31.3-test
version: 0.0.1
appVersion: v0.0.1 # templates/gluetun.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: gluetun
spec:
selector:
matchLabels:
app: transmission
template:
metadata:
labels:
app: transmission
spec:
containers:
- name: gluetun
image: ghcr.io/qdm12/gluetun:latest
securityContext:
capabilities:
add:
- NET_ADMIN
env:
- name: VPN_SERVICE_PROVIDER
value: mullvad
- name: VPN_TYPE
value: openvpn
- name: OPENVPN_USER
value: # redacted
- name: OPENVPN_PASSWORD
value: m
- name: SERVER_COUNTRIES
value: UK
- name: OWNED_ONLY
value: 'yes' |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've created this repo for reproduction and raised this issue with K3s: k3s-io/k3s#11429 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im running Gluetun in a K3d cluster and bumping the K3s image from
rancher/k3s:v1.31.3-k3s1
torancher/k3s:v1.31.2-k3s1
causes the Glueton container to fail to setup the/dev/net/tun
device. For context, the bump was done via renovate.I suspect the issue is likely to be upstream of Gluetun but since Gluetun is the only way the issue is manifesting for me, I figured it was best to open a discussion here in case anyone else is having the same issue. Ill do some debugging to see if additional capabilities are required and report back.
Details of error below.
Error on container start:
Making the container privileged fixes this problem but this shouldn't be the solution.
Looking at the changelog for k3s v1.31.3-k3s1, I cant see anything that could affect this.
Im going to try applying the documented fix for LXC container and report back.
Beta Was this translation helpful? Give feedback.
All reactions