Kubernetes is built from several core components that work together to run and manage containerized applications. These components are usually grouped into: Control Plane Components (manage the cluster) Node Components (run workloads) 1️ . Control Plane Components The control plane is responsible for managing the Kubernetes cluster. 1. kube-apiserver The API server is the entry point to the cluster . Everything in Kubernetes goes through it. Responsibilities Exposes the Kubernetes REST API Validates requests Processes CRUD operations for resources Communicates with the cluster datastore Example operations: Creating a Pod Scaling deployments Updating configurations Flow example: User → kubectl → API Server → etcd Key points: Stateless Can be horizontally scaled All components talk to it 2. etcd etcd is the key-value database of Kubernetes. It stores all cluster state. Stores ...
Container Runtime CLI Tools Runtime: containerd Used commonly in: Kubernetes 1️⃣ ctr – containerd Native CLI ✅ What It Is Low-level CLI for containerd Used mainly for debugging and advanced runtime operations ⚠ Not user-friendly (No Docker-style UX) Common ctr Commands Image Management ctr images pull nginx:latest ctr images list ctr images rm nginx:latest Container Management ctr containers create docker.io/library/nginx:latest mynginx ctr containers list ctr containers delete mynginx Task (Running Container) Management ctr tasks start mynginx ctr tasks list ctr tasks kill mynginx ctr tasks rm mynginx Namespaces (Important in Kubernetes) ctr namespaces list ctr -n k8s.io containers list When to Use ctr Debugging containerd directly Troubleshooting runtime issues Not recommended for daily use 2️⃣ nerdctl – Docker-like CLI for containerd Project: nerdctl ✅ What It Is Docker-compatible CLI for containerd Feels similar to Docker CLI Common n...
Comments
Post a Comment