Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 704 Bytes

runtimes.md

File metadata and controls

42 lines (32 loc) · 704 Bytes

Create the following gvisor runtime class and create a nginx pod referring the gvisor runtime.


cat << EOF > gvisor.yaml
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: gvisor
handler: runsc
EOF

kubectl apply -f gvisor.yaml
show

cat << EOF > nginx.yaml
apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  runtimeClassName: gvisor
  containers:
  - image: nginx
    name: nginx
  restartPolicy: Always
EOF

kubectl apply -f nginx.yaml

# NOTE : Pod may not come up as the runtime does not actually exist