Gendi Notes

Engineering notes that start with the basics

Every topic answers the same three questions first — what is it, what is it made of, and how do you actually use it — before going near the advanced material.

34
Notes
9
Topics
23
Beginner
11
Advanced
2
Cheat sheets

Foundations

DevOps

Containers

Kubernetes

Kubernetes Basics L1

You describe what you want running; Kubernetes keeps making reality match that description. Everything else is detail.

ConfigMaps and Secrets L2

Both are key-value objects that decouple configuration from images. The only real difference is that a Secret is base64-encoded and handled slightly more carefully — it is **not** encrypted by default.

Helm L2

Helm is a templating engine plus a release ledger. Separating those two jobs in your head explains every Helm problem you will have.

Ingress and TLS L2

An Ingress object is a set of routing rules that does nothing on its own. A **controller** has to be installed to read it — and "my Ingress is ignored" is almost always that it is not.

Kubernetes Deployments L2

A Deployment is how you get zero-downtime updates: it never edits a running pod, it creates new ones and removes old ones in a controlled order.

Kubernetes Pods L2

A pod is not "a container" — it is a small group of containers that share an IP address and a filesystem, and always live and die together.

Kubernetes Services L2

Pods get a new IP address every time they restart, so nothing can talk to them directly. A Service is the stable address that stays put.

Kubernetes Troubleshooting L2

Three commands solve most problems: `describe` tells you what Kubernetes thinks, `logs` tells you what the app said, `get endpoints` tells you why traffic is not arriving.

Autoscaling and Scheduling L3

Autoscaling adds pods; the scheduler decides where they go; the cluster autoscaler adds machines when there is nowhere. Three separate systems, and most "autoscaling is broken" is really one of the other two.

Building a Cluster with kops L3

kops treats a cluster as a declarative object stored in S3 — you edit the spec, then tell it to make reality match, which is exactly the Kubernetes model applied to the cluster itself.

Kubernetes Architecture L3

Nothing in Kubernetes calls anything. Every component watches the API server for a gap between what you asked for and what exists, then acts to close it — and that single sentence explains the whole system.

Kubernetes RBAC L3

Four object types and one rule: permissions are **purely additive**, there is no deny. If someone can do something they should not, you remove a binding — you cannot add a rule to stop them.

Kubernetes Storage L3

A PVC is a **request** for storage; a PV is the storage itself. You write the request, the cluster finds or creates the disk, and separating those two roles is what makes storage portable between clouds.

StatefulSets, DaemonSets and Jobs L3

A Deployment assumes its pods are interchangeable. The other three workload types exist for the cases where they are not — because they have identity, because you need one per node, or because they are meant to finish.

Infrastructure as Code

SRE

Observability

Interviews

Cheat Sheets