Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 689 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 689 Bytes

crun extension

Installation

See Installing Extensions.

Usage

In order to create the Wasm workload, a runtimeclass needs to be created.

apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: crun
handler: crun

Testing

Apply the following manifest to run nginx pod via crun:

---
apiVersion: v1
kind: Pod
metadata:
  name: nginx-crun
spec:
  runtimeClassName: crun
  containers:
  - name: nginx
    image: nginx

The pod should be up and running:

$ kubectl get pods
NAME           READY   STATUS    RESTARTS   AGE
nginx-crun   1/1     Running   0          40s