What is a pod?
Smallest deployable unit in Kubernetes; like a workstation where work happens.
What is a container?
A packaged app with everything it needs to run; like a robot with a specific job.
How do pods and containers relate?
A pod holds one or more containers; pod = workspace, container = robot.
Factory analogy for robots, workstations, and rooms?
Robots → containers, Workstations → pods, Rooms → nodes.
Why include all contents in a container?
So it can run anywhere without missing dependencies, like a robot with all tools.
What is a cluster?
Entire factory building with nodes, pods, and containers running together.
How do nodes, pods, and containers work together?
Nodes are like rooms, pods are workstations inside those rooms, and containers are the robots doing the work.
What is a deployment?
Blueprint for running pods/containers; ensures the right number are running and updated.
What is a namespace?
Separate section of the cluster to organize resources and prevent conflicts.
Who is Kubernetes in the analogy?
The boss managing the factory, keeping everything running smoothly.
What is K9s?
Terminal tool to view, navigate, and manage Kubernetes clusters.
How to find errors in pod logs with kubectl?
kubectl logs <pod> | grep error</pod>
How to search in K9s logs?
Use / error while inside K9s.
How to specify a namespace in kubectl?
Add -n <namespace> to the command, e.g., kubectl get pods -n <namespace>.</namespace></namespace>
List all files including hidden?
ls -la
Change directory?
cd <directory></directory>
Go to home directory?
cd ~
Move to parent directory?
cd ..
Print full path of current directory?
pwd
Create a new directory?
mkdir <directory></directory>
Copy file/directory?
cp <source></source> <destination></destination>
Move or rename file/directory?
mv <source></source> <destination></destination>
Remove file/directory?
rm <file> or rm -r <directory></directory></file>
Create empty file?
touch <filename></filename>