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
7 months agoBeula
7 months agoArminda
7 months agoMatthew
7 months agoYoko
8 months agoNoah
8 months agoVirgina
8 months agoAlethea
8 months agoDana
8 months agoLeontine
8 months agoStephaine
8 months agoRefugia
8 months agoParis
9 months agoArthur
9 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