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
7 months agoRoy
7 months agoMarge
7 months agoParis
7 months agoEllsworth
8 months agoJennifer
8 months agoCeola
8 months agoElsa
8 months agoKiley
8 months agoBarbra
8 months agoLisha
8 months agoMaile
8 months agoKeshia
8 months agoDewitt
9 months agoYun
1 year agoNada
12 months agoMarsha
12 months agoJulio
12 months 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