<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Infrastructure Pod :: Tag :: Kubernetes training</title><link>https://k8s-school.fr/labs/k8s/en/tags/infrastructure-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>Thu, 20 Feb 2025 14:15:26 +1000</lastBuildDate><atom:link href="https://k8s-school.fr/labs/k8s/en/tags/infrastructure-pod/index.xml" rel="self" type="application/rss+xml"/><item><title>Infrastructure pod</title><link>https://k8s-school.fr/labs/k8s/en/1_labs/infrastructure-pod/index.html</link><pubDate>Thu, 20 Feb 2025 14:15:26 +1000</pubDate><guid>https://k8s-school.fr/labs/k8s/en/1_labs/infrastructure-pod/index.html</guid><description>Author: Fabrice JAMMES (LinkedIn)
Task Follow the steps below to investigate the relationship between Kubernetes pods and containers:
Connect to a Kind node Answer Run docker ps to find the Kind node name. Use docker exec -it &lt;kind-node-name&gt; bash to enter the container. docker exec -it &lt;kind-node-name&gt; bash Use crictl to list pods and containers: Answer crictl ps -a lists all containers. crictl pods shows running pods. crictl ps -a crictl pods Investigate the relationship between a pod and its container(s): Answer crictl inspect &lt;container-id&gt; provides container details. ps auxf shows process hierarchy. crictl inspect &lt;container-id&gt; crictl inspectp &lt;pod-id&gt; ps auxf What is the role of the “pause” process? Answer The “pause” container acts as the parent container for all other containers in a pod. It holds the network namespace and ensures pod lifecycle consistency. Explore the directories /var/log and /var/lib/kubelet. Answer /var/log: Contains logs from Kubernetes components and container runtime. /var/lib/kubelet/pods: Stores pod data, volume mounts, and container runtime state Conclusion This lab guides you through a better understanding of pod technical architecture.</description></item></channel></rss>