Cks mock exam 1

There was a question related to runtime class where runtimeClass need to create . I understand that gvisor is not exist on node01. but every time when i creating kubernetes object RuntimeClass but every time getting error that version not exist even i am copying the file form answer.

Another issue : at the time of modifying kubeapi server yaml, if it pod not start where I can check log. I tried docker log but nothing found. even I didn’t find /var/log/pod location in master node.

PLease help me

Please try again after deleting the pod and recreate it using this YAML

apiVersion: v1
kind: Pod
metadata:
    labels:
        run: busy-rx100
    name: busy-rx100
    namespace: production
spec:
    runtimeClassName: gvisor
    containers:
        -
            image: nginx
            name: busy-rx100

Screen Shot 2021-07-09 at 10.29.03

got it ,. How to chek log if anything wrong configured in kube-apiserver.yaml

Check the following steps

Screen Shot 2021-07-09 at 15.53.14

Thanks for reply , to check log with kubectl log will help when kube-api server is up . suppose i configured a file but path of file is not correct or some other issue because of that kube-api server not comes up . then where i can check log to identify the issue.

suppose I configured audit policy file and due to that kube api is not coming up so how i can identify the issue where i can check logs then

I know /var/log/pods/ inside that i can get log , but in mock exam, i am not getting that logs .

Please help , correct my understanding if anything wrong.