Untitled Deck Flashcards

(37 cards)

1
Q

What is a pod?

A

Smallest deployable unit in Kubernetes; like a workstation where work happens.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a container?

A

A packaged app with everything it needs to run; like a robot with a specific job.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do pods and containers relate?

A

A pod holds one or more containers; pod = workspace, container = robot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Factory analogy for robots, workstations, and rooms?

A

Robots → containers, Workstations → pods, Rooms → nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why include all contents in a container?

A

So it can run anywhere without missing dependencies, like a robot with all tools.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a cluster?

A

Entire factory building with nodes, pods, and containers running together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do nodes, pods, and containers work together?

A

Nodes are like rooms, pods are workstations inside those rooms, and containers are the robots doing the work.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a deployment?

A

Blueprint for running pods/containers; ensures the right number are running and updated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a namespace?

A

Separate section of the cluster to organize resources and prevent conflicts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Who is Kubernetes in the analogy?

A

The boss managing the factory, keeping everything running smoothly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is K9s?

A

Terminal tool to view, navigate, and manage Kubernetes clusters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to find errors in pod logs with kubectl?

A

kubectl logs <pod> | grep error</pod>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to search in K9s logs?

A

Use / error while inside K9s.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to specify a namespace in kubectl?

A

Add -n <namespace> to the command, e.g., kubectl get pods -n <namespace>.</namespace></namespace>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

List all files including hidden?

A

ls -la

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Change directory?

A

cd <directory></directory>

17
Q

Go to home directory?

18
Q

Move to parent directory?

19
Q

Print full path of current directory?

20
Q

Create a new directory?

A

mkdir <directory></directory>

21
Q

Copy file/directory?

A

cp <source></source> <destination></destination>

22
Q

Move or rename file/directory?

A

mv <source></source> <destination></destination>

23
Q

Remove file/directory?

A

rm <file> or rm -r <directory></directory></file>

24
Q

Create empty file?

A

touch <filename></filename>

25
Display file contents?
cat
26
Search for pattern in file?
grep
27
View manual/help for a command?
man or --help
28
What is sudo?
Runs command as superuser/admin.
29
Change file permissions?
chmod
30
List running processes?
ps
31
Pod isn’t working. What do you do?
Check logs (kubectl logs -n ), grep for errors, use K9s.
32
Container shows error. Steps?
Check logs, verify dependencies, review configuration.
33
Explain Kubernetes to non-technical person?
Automation system for engineers to manage and scale containerized applications. Robots = containers, Workstations = pods, Rooms = nodes, Factory = cluster, Service = helper, Boss = Kubernetes, Sections = namespaces.
34
Difference between pod and container?
Pod = workspace, Container = robot inside it doing a task.
35
How to check cluster health?
Ensure nodes are ready, pods running, deployments correct, and namespaces organized.
36
Why use deployments?
Ensures correct number of pods run, updates safely, recovers from failures.
37
Why use namespaces?
Organize resources, separate teams, prevent conflicts in the same cluster.