<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Static Pod :: Tag :: Kubernetes training</title><link>https://k8s-school.fr/labs/k8s/en/tags/static-pod/index.html</link><description/><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2025 Fabrice Jammes - Licensed under CC BY-SA 4.0</copyright><lastBuildDate>Sun, 30 Jun 2024 14:15:26 +1000</lastBuildDate><atom:link href="https://k8s-school.fr/labs/k8s/en/tags/static-pod/index.xml" rel="self" type="application/rss+xml"/><item><title>Kubelet and static pods</title><link>https://k8s-school.fr/labs/k8s/en/1_labs/openshift-staticpod/index.html</link><pubDate>Sun, 30 Jun 2024 14:15:26 +1000</pubDate><guid>https://k8s-school.fr/labs/k8s/en/1_labs/openshift-staticpod/index.html</guid><description>Exercice 1: retrieve static pod specifications in Kubernetes (kind-based) Switch to Kubernetes cluster using kubectx kind-kind and then access the control plane Node using docker exec -t -- &lt;my-master-node&gt; sh and then access Kubelet configuration.
Answer MASTER_NODE=$(kubectl get nodes '--selector=node-role.kubernetes.io/control-plane' -o jsonpath='{.items[0].metadata.name}') # Exit the ktbx-toolbox to run docker docker exec -t -- kind-control-plane sh -c 'ps -ef | grep "/usr/bin/kubelet"' docker exec -t -- kind-control-plane sh -c 'cat /var/lib/kubelet/config.yaml | grep -i staticPodPath' docker exec -t -- kind-control-plane sh -c 'ls /etc/kubernetes/manifests' Exercice 1: retrieve static pod specifications in Openshift Switch to Kubernetes cluster using kubectx &lt;my-openshift-context&gt; and then access the control plane Node using oc debug node/&lt;my-master-node&gt; and then access Kubelet configuration.</description></item></channel></rss>