K8s by Example: Overview
| Kubernetes orchestrates containers across a cluster of machines. This guide shows how the core components fit together: Cluster, Nodes, Pods, Deployments, and Services. |
| cluster-overview.txt | |
| A Cluster is a set of machines (nodes) running Kubernetes. The Control Plane manages the cluster, worker nodes run your applications. | |
| node.txt | |
| A Node is a machine (physical or virtual) in the cluster. Each node runs kubelet (agent), kube-proxy (networking), and a container runtime. Nodes host Pods. | |
| pod.txt | |
| A Pod is the smallest deployable unit. It wraps one or more containers that share network (same IP) and storage. Containers in a Pod communicate via localhost. | |
| deployment-replicaset-pod.txt | |
| Deployment manages ReplicaSets, which ensure N copies of a Pod run. You define desired state, Kubernetes maintains it. Deployments handle rolling updates. | |
| service.txt | |
| A Service provides a stable IP and DNS name to access Pods. Pods are ephemeral (they come and go), but Services give a fixed endpoint. Load balances across matching Pods. | |
| namespace.txt | |
| Namespaces divide a cluster into virtual clusters. Use them to separate teams, environments (dev/prod), or projects. Resources in different namespaces are isolated by default. | |
| labels-selectors.txt | |
| Labels are key-value tags on resources. Selectors find resources by labels. This is how Services find Pods, and how you organize resources. | |
| configmap-secret.txt | |
| ConfigMap stores configuration (env vars, config files). Secret stores sensitive data (passwords, tokens). Both inject data into Pods without hardcoding. | |
| full-picture.txt | |
| Putting it all together: Deployments manage Pods, Services expose them, ConfigMaps/Secrets configure them, all organized in Namespaces. | |
| terminal | |
| See all main resources in the current namespace. This shows Pods, Services, Deployments, and ReplicaSets at a glance. | |