Skip to content

If I enable Feature Preview the Workload shows "MountVolume.SetUp failed for volume "dev-net-tun" : hostPath type check failed: /dev/net/tun is not a file" #2994

Closed
@lucky4ever2

Description

@lucky4ever2

Describe the bug

I have a Rancher Cluster with RKE.
If I enable Feature Preview the Workload-pod in Rancher shows "MountVolume.SetUp failed for volume "dev-net-tun" : hostPath type check failed: /dev/net/tun is not a file."

Bildschirmfoto 2021-01-22 um 15 51 13

The file exists on the node but I think the workspace cannot access it.
I had a similar problem with theia but was able to solve it with the rancher-cluster.yml as follows:

services:
  kubelet:
    extra_binds:
       - /var/gitpod/theia/theia-0.6.0:/var/gitpod/theia/theia-0.6.0:rshared

in this case that doesn't work

Steps to reproduce

Enable Feature Preview in the Gui

Expected behavior

I can use the root access: https://www.gitpod.io/docs/feature-preview/

Additional information

Rancher 2.5.5
RKE 1.2.4
Kubernetes 1.19.6
Gitpod-Selfhost 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions