CKA Mock 2 - Task 8

Task 8 Requirements:
Create a static pod on node01 called nginx-critical with image nginx and make sure that it is recreated/restarted automatically in case of a failure.
Use /etc/kubernetes/manifests as the Static Pod path for example.

I have two questions:
1.Why does it not work following below instruction (4 methods to choose where Kubernetes schedules specific Pods), per the solution video, it’s reinforced this has to be done on node01? Is this the constraint of static pod?
Assigning Pods to Nodes | Kubernetes

2.In there any limitation to reference docs in Kubernetes web site during CKA exam? By playing with the mock exam, I noticed at times it explicitly asks you to navigate to Kubernetes web site and load the link in the right corner close to the terminal, so worried whatif otherwise?

  1. Static pods are directly associated with nodes and are created by kubelet itself without aid of the scheduler, therefore if you are asked to create one on a specific node, then you must place the manifest in that node’s /etc/kubernetes/manifests. The link you have provided is how to tell the kube-scheduler to assign a pod to a node. Static pods do not work like that. They work like kube-apiserver etc. To confirm the static pod path, look at that node’s kubelet configuration
    cat /var/lib/kubelet/config.yaml
    
    Also revise the lecture on static pods.
  2. You can view any kubernetes documentation as defined here.

Thanks Alistair

clear on point#1

Reg point#2, i menat to ask if we could use Kubernetes documents during CKA exam as wishes at any time, or it can be used only it’s available as the documentation tab at the top right of terminal, see blow snapshot:

Please see this GitHub - kodekloudhub/community-faq

Read the rest of the document too

Perfect, the FAQ really helps me a lot

Thank you again, Alistair, and happy new year :grinning: