Page MenuHomePhabricator

Testing Gvisor with Kube8s
Closed, ResolvedPublic

Event Timeline

ubuntu@gvisor-san:~$ minikube start --container-runtime=containerd      --docker-opt containerd=/var/run/containerd/containerd.sock
๐Ÿ˜„  minikube v1.18.1 on Ubuntu 18.04 (amd64)
โœจ  Using the docker driver based on existing profile
๐Ÿ‘  Starting control plane node minikube in cluster minikube
๐Ÿƒ  Updating the running docker "minikube" container ...
๐ŸŒ  Found network options:
    โ–ช NO_PROXY=localhost,127.0.0.1,169.254.169.254,dkfz-heidelberg.de,192.168.49.2,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24
    โ–ช http_proxy=http://www-int2.dkfz-heidelberg.de:80
    โ–ช https_proxy=http://www-int2.dkfz-heidelberg.de:80
    โ–ช no_proxy=localhost,127.0.0.1,169.254.169.254,dkfz-heidelberg.de,192.168.49.2,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24
โ—  This container is having trouble accessing https://k8s.gcr.io

Update: The above issue is still an open issue in Kubernetes minikube,

Link:  https://github.com/kubernetes/minikube/issues/9798

Created a bug in google gvisor, and one guy is helping us.

https://github.com/google/gvisor/issues/5740

Reply from Gvisor Team

gVisor binaries are not present in the image, so the addon used to enable gvisor (minikube addons enable gvisor) must download gVisor binaries from the link you mentioned and install in the node image. You can find the code for the add on here:
https://github.com/kubernetes/minikube/blob/f567893cdbb8e98a0348c1d93455af71cf6ce12c/pkg/gvisor/enable.go

Once gVisor is installed in the node via the addon, then you can setup pods to run with gVisor using runtimeClassName: gvisor. These pods will run inside gVisor sandboxes, that are isolated from the host, with the network as configured for the pod.

I hope it helps,
Fabricio.

closing gVisor experiments since Kata is our first choice and Kata is able to run in our bare-metal machine, hence temporarily closing gVisor testing.

k688h triaged this task as High priority.Dec 9 2022, 12:07 PM
k688h moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.