Linux Foundation CKS Exam - Topic 6 Question 65 Discussion
Context:
Cluster:gvisor
Master node:master1
Worker node:worker1You can switch the cluster/configuration context using the following command:[desk@cli] $kubectl config use-context gvisorContext:This cluster has been prepared to support runtime handler, runsc as well as traditional one.Task:
Create a RuntimeClass namednot-trustedusing the prepared runtime handler namesrunsc.
Update all Pods in the namespace server to run onnewruntime.
A) Explanation:
Explanation
[desk@cli] $vim runtime.yaml
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: not-trusted
handler: runsc
[desk@cli] $k apply -f runtime.yaml
[desk@cli] $k get pods
NAME READY STATUS RESTARTS AGE
nginx-6798fc88e8-chp6r 1/1 Running 0 11m
nginx-6798fc88e8-fs53n 1/1 Running 0 11m
nginx-6798fc88e8-ndved 1/1 Running 0 11m
[desk@cli] $k get deploy
NAME READY UP-TO-DATE AVAILABLE AGE
nginx 3/3 11 3 5m
[desk@cli] $k edit deploy nginx
Dortha
10 months agoBeula
10 months agoArminda
10 months agoMatthew
10 months agoYoko
11 months agoNoah
11 months agoVirgina
11 months agoAlethea
11 months agoDana
11 months agoLeontine
11 months agoStephaine
11 months agoRefugia
11 months agoParis
12 months agoArthur
12 months agoBettina
2 years agoDesmond
2 years agoBecky
2 years agoEllsworth
2 years agoGeorgene
2 years agoLonna
2 years agoBernardo
2 years agoKatie
2 years agoOren
2 years agoVeta
2 years agoCrista
2 years agoClarinda
2 years agoMargarita
2 years agoClarinda
2 years ago