Linux Foundation CKS Exam - Topic 3 Question 72 Discussion
Create a RuntimeClass 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
A) Explanation:
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 pod nginx-gvisor -o wide
}
Dana
10 months agoRoy
10 months agoMarge
10 months agoParis
10 months agoEllsworth
11 months agoJennifer
11 months agoCeola
11 months agoElsa
11 months agoKiley
11 months agoBarbra
11 months agoLisha
11 months agoMaile
11 months agoKeshia
11 months agoDewitt
12 months agoYun
1 year agoNada
1 year agoMarsha
1 year agoJulio
1 year agoJohnetta
1 year agoOlen
1 year agoRonny
1 year agoCrista
1 year agoShonda
1 year agoAliza
1 year agoSheron
1 year agoBeth
1 year agoDenise
1 year agoWilletta
1 year agoFrederic
1 year agoWilletta
1 year ago