Opscraft
Kubernetes, EKS, GitOps & releases

Kubernetes in depth

Must-know11 lessons · 56 min · 3 tests ·

Senior DevOps roles expect you to know Kubernetes inside and out (and if you hold the CKA, interviewers will assume you do). Interviews probe the internals: how a request flows through the API server, what etcd and Raft guarantee, how the scheduler decides, what the kubelet does on a node, how Services and DNS really route traffic, how storage binds, and how RBAC and admission control secure the cluster. This topic is the deep reference; the separate Kubernetes troubleshooting and EKS topics cover day-two operations and AWS specifics.

Stage 3 · Production platforms

Know these first

After this topic you can

  • Explain how the Kubernetes control plane and nodes work together
  • Use Deployments, Services, ConfigMaps and probes correctly
  • Reason about scheduling, networking and storage

Lessons

  1. 1The Kubernetes model: declarative state and control loops 6 min read
    • Objects
    • Reconciliation
    • Labels, selectors and annotations
    • Namespaces
    • Ownership, garbage collection and finalizers
  2. 2Control plane components in depth 7 min read
    • kube-apiserver
    • etcd
    • kube-scheduler
    • kube-controller-manager
    • cloud-controller-manager
    • High availability
  3. 3Node components and the pod lifecycle 9 min read
    • kubelet
    • Container runtime
    • kube-proxy
    • CNI plugin
    • What happens when you create a Deployment
    • Pod phases, conditions and container states
    • Init containers and sidecars
    • Pod termination
  4. 4Workload controllers 5 min read
    • Deployment and ReplicaSet
    • StatefulSet
    • DaemonSet
    • Job and CronJob
    • Autoscaling objects
  5. 5Services, networking and DNS 7 min read
    • Service types
    • How a ClusterIP connection flows (iptables mode)
    • DNS with CoreDNS
    • Ingress and Gateway API
    • NetworkPolicy
  6. 6Storage 3 min read
    • Volume types
    • PV, PVC and StorageClass
  7. 7Configuration, secrets and the downward API 3 min read
    • ConfigMaps and Secrets
    • Downward API
  8. 8Scheduling and resource management 5 min read
    • Requests, limits and QoS
    • Node pressure and eviction
    • Steering placement
    • Guardrails per namespace
  9. 9Security: authentication, RBAC and admission 3 min read
    • Authentication
    • RBAC
    • Admission control and Pod Security
    • Pod securityContext
    • Audit logging
  10. 10Extending Kubernetes and operating clusters 3 min read
    • CRDs and operators
    • Upgrades and version skew
    • Backup and disaster recovery
    • Certificates
  11. 11Interview questions and model answers 5 min read
    • "What happens when you run kubectl apply -f deployment.yaml?"
    • "Why does etcd need an odd number of members, and what happens if it loses quorum?"
    • "How does a Service actually route traffic?"
    • "Explain requests vs limits and QoS classes."
    • "StatefulSet vs Deployment?"
    • "A pod is Pending. How do you reason about it?"
    • "How do NetworkPolicies work?"
    • "How do you secure a cluster?"
    • "What are operators and CRDs?"