Using the gVisor Addon
gVisor Addon
gVisor, a sandboxed container runtime, allows users to securely run pods with untrusted workloads within minikube.
Starting minikube
gVisor depends on the containerd runtime to run in minikube. When starting minikube, specify the following flags, along with any additional desired flags:
Enabling gVisor
To enable this addon, simply run:
Within one minute, the addon manager should pick up the change and you should
see the gvisor
pod and gvisor
Runtime Class:
Once the pod has status Running
, gVisor is enabled in minikube.
Running pods in gVisor
To run a pod in gVisor, add the gvisor
runtime class to the Pod spec in your
Kubernetes yaml:
An example Pod is shown below:
Disabling gVisor
To disable gVisor, run:
Within one minute, the addon manager should pick up the change.
Once the gvisor
pod has status Terminating
, or has been deleted, the gvisor addon should be disabled.
Note: Once gVisor is disabled, any pod with the gvisor
Runtime Class will fail with a FailedCreatePodSandBox error.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.