mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-07 06:47:17 +02:00
* Linux Firmware: 20240115 * DRBD: 9.2.7 * gvisor: 20240109.0 * QEMU: 8.2.0 * Tailscale: 1.56.1 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com> |
||
---|---|---|
.. | ||
gvisor.part | ||
manifest.yaml | ||
pkg.yaml | ||
README.md | ||
runsc.toml | ||
vars.yaml |
gVisor extension
Installation
Usage
gVisor requires unprivileged user namespace creation, so Talos default setting should be overridden:
machine:
sysctls:
user.max_user_namespaces: "11255"
Warning! This disables KSPP best practices setting.
Testing
Apply the following manifest to run nginx pod via gVisor:
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: gvisor
handler: runsc
---
apiVersion: v1
kind: Pod
metadata:
name: nginx-gvisor
spec:
runtimeClassName: gvisor
containers:
- name: nginx
image: nginx
The pod should be up and running:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-gvisor 1/1 Running 0 40s