PdfPrep.com

CORRECT TEXT

CORRECT TEXT

Create aRuntimeClass named gvisor-rc using the prepared runtime handler named runsc.

Create a Pods of image Nginx in the Namespace server to run on the gVisor runtime class

Answer: ✑ Install the Runtime Class for gVisor {# Step 1: Install a RuntimeClass

cat <<EOF | kubectl apply -f – apiVersion: node.k8s.io/v1beta1 kind: RuntimeClass metadata:

name: gvisor

handler: runsc

EOF

}

✑ Create a Pod with the gVisor Runtime Class { # Step 2: Create a pod

cat <<EOF |kubectl apply -f –

apiVersion: v1

kind: Pod

metadata:

name: nginx-gvisor

spec:

runtimeClassName: gvisor

containers:

– name: nginx image: nginx

EOF

}

✑ Verify that the Pod is running { # Step 3: Get the pod

kubectl get podnginx-gvisor -o wide

}

Exit mobile version