gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/g3doc/user_guide/quick_start/kubernetes.md (about) 1 # Kubernetes Quick Start 2 3 gVisor can be used to run Kubernetes pods and has several integration points 4 with Kubernetes. 5 6 ## Using GKE Sandbox 7 8 [GKE Sandbox][gke-sandbox] is available in [Google Kubernetes Engine][gke]. You 9 just need to deploy a node pool with gVisor enabled in your cluster, and it will 10 run pods annotated with `runtimeClassName: gvisor` inside a gVisor sandbox for 11 you. [Here][wordpress-quick] is a quick example showing how to deploy a 12 WordPress site. You can view the full documentation [here][gke-sandbox-docs]. 13 14 ## Using Minikube 15 16 gVisor can run sandboxed containers in a Kubernetes cluster with Minikube. After 17 the gVisor addon is enabled, pods with a `gvisor` [Runtime Class][runtimeclass] 18 set to true will execute with `runsc`. Follow [these instructions][minikube] to 19 enable gVisor addon. 20 21 ## Using Containerd 22 23 You can also setup Kubernetes nodes to run pods in gVisor using 24 [containerd][containerd] and the gVisor containerd shim. You can find 25 instructions in the [Containerd Quick Start][gvisor-containerd]. 26 27 [containerd]: https://containerd.io/ 28 [minikube]: https://github.com/kubernetes/minikube/blob/master/deploy/addons/gvisor/README.md 29 [gke]: https://cloud.google.com/kubernetes-engine/ 30 [gke-sandbox]: https://cloud.google.com/kubernetes-engine/sandbox/ 31 [gke-sandbox-docs]: https://cloud.google.com/kubernetes-engine/docs/how-to/sandbox-pods 32 [gvisor-containerd]: /docs/user_guide/containerd/quick_start/ 33 [runtimeclass]: https://kubernetes.io/docs/concepts/containers/runtime-class/ 34 [wordpress-quick]: /docs/tutorials/kubernetes/