Maintenance

Site is under maintenance — quizzes are still available.

Go to quizzes
DevOps & backends · Containers & orchestration

kubernetes

Pods to Ingress with diagnostics: workloads, probes, Helm orientation, rollout safety.

Sponsored

Lesson outline

  1. 1
    What Is Kubernetes

    Learn what Kubernetes is and why it's essential for container orchestration in this hands-on tutorial.

  2. 2
    K8s Architecture Overview

    Explore the core components of Kubernetes architecture: control plane, nodes, etcd, and how they interact to manage containerized workloads.

  3. 3
    Install Minikube

    Step-by-step guide to install minikube on your machine for Kubernetes local development.

  4. 4
    Install kubectl CLI Tool

    Install kubectl command-line tool — kubernetes.

  5. 5
    Your first kubectl command

    Your first kubectl command — kubernetes tutorial, lesson 5. Learn the foundational command to interact with your cluster, apply it in a hands-on exercise, and connect to the next lesson in the track.

  6. 6
    Run a pod with kubectl run

    Run a pod with kubectl run — kubernetes. Practical steps to create pods imperatively with kubectl run. Covers core concepts, syntax, hands-on exercise, options comparison, and troubleshooting. Connects workload creation to larger Kubernetes workflows.

  7. 7
    View Pod Logs in Real Time

    Learn how to view pod logs in real time in Kubernetes — streaming, filtering, and troubleshooting container output with kubectl logs.

  8. 8
    Expose a Pod as a Service

    Learn how to expose a pod as a service in Kubernetes so that other pods and external clients can reach it. This lesson covers the problem it solves, the core mental model, step-by-step walkthrough, troubleshooting tips, and what to study next.

  9. 9
    Kubernetes Nodes and Clusters

    Understand Kubernetes nodes and clusters: the foundation of cluster architecture, node roles, core components, and how master and worker nodes work together. Includes a hands-on exercise, troubleshooting tips, and next steps.

  10. 10
    Manage Namespaces for Isolation

    Learn to manage Kubernetes namespaces for environment isolation, including creation, labeling, and resource quotas, with hands-on practice and troubleshooting.

  11. 11
    Deploy a ReplicaSet

    Learn how to deploy a ReplicaSet for scaling in Kubernetes with step-by-step hands-on exercises and troubleshooting.

  12. 12
    Create a Deployment from a Manifest

    Learn how to create a Kubernetes deployment from a YAML manifest in this hands-on tutorial. Step-by-step walkthrough, troubleshooting, and what to study next.

  13. 13
    Scale a Deployment Manually

    Learn to scale a Kubernetes Deployment manually — practical step-by-step guide for controlling replica count, with tips on when to use manual scaling vs autoscaling.

  14. 14
    Rolling Updates with Deployment

    Perform a rolling update with Deployment in Kubernetes: step-by-step walkthrough, mental model, hands-on exercise, troubleshooting, and what to study next.

  15. 15
    Roll back a faulty Deployment

    Learn how to roll back a faulty Deployment in Kubernetes. Step-by-step instructions, troubleshooting tips, and hands-on practice to revert changes and maintain cluster stability.

  16. 16
    Kubernetes Service Types

    Learn how ClusterIP, NodePort, and LoadBalancer services work in Kubernetes with a hands-on exercise and troubleshooting tips.

  17. 17
    NodePort Service Expose

    Learn how to expose a Kubernetes Deployment using a NodePort service with a hands-on walkthrough, comparison of options, troubleshooting, and next steps.

  18. 18
    Use port-forwarding to access pods

    Learn how to use kubectl port-forward to access your Kubernetes pods locally. Hands-on guide with troubleshooting and next steps.

  19. 19
    ConfigMaps in Kubernetes

    Learn how to use ConfigMaps for decoupled configuration in Kubernetes. This lesson covers core concepts, step-by-step walkthrough, and troubleshooting to help you manage application settings independently from your code.

  20. 20
    Inject Secrets as Env Vars

    Learn how to securely inject Kubernetes secrets as environment variables into pods. This lesson covers step-by-step methods, best practices, and common pitfalls.

  21. 21
    Persistent Volumes & Claims

    Learn how to manage storage in Kubernetes with Persistent Volumes and Persistent Volume Claims. This lesson covers concepts, hands-on exercises, and troubleshooting.

  22. 22
    Attach a PersistentVolumeClaim

    Learn to attach a PersistentVolumeClaim to a Kubernetes pod with hands-on steps, troubleshooting, and practical examples.

  23. 23
    StatefulSet for Stateful Apps

    Learn to run a stateful application with StatefulSet in Kubernetes. Covers core concepts, hands-on steps, troubleshooting, and comparison with Deployments.

  24. 24
    Manage Headless Services StatefulSets

    Learn to manage headless services for StatefulSets in Kubernetes: understand the core concept, step-by-step mechanics, and a hands-on walkthrough. Includes troubleshooting, edge cases, and next lesson preview.

  25. 25
    DaemonSet on Every Node

    Understand how to use DaemonSets in Kubernetes to run a pod on every node. This lesson covers core concepts, hands-on deployment, and when to choose DaemonSets over other workload types.

  26. 26
    Multi-Container Pod

    Write a multi-container pod spec in Kubernetes: learn the sync pattern, sidecar design, shared volumes, and inter-container communication with a hands-on exercise. Includes troubleshooting and edge cases.

  27. 27
    Init Containers Pattern

    Learn how init containers run sequentially before app containers in Kubernetes, enabling setup tasks like waiting for services or loading config.

  28. 28
    Liveness Probes in Kubernetes

    Configure liveness probes to restart unhealthy containers automatically. Hands-on exercises teach HTTP, TCP, and command probes for robust applications.

  29. 29
    Implement Readiness Probes

    Learn how to implement readiness probes in Kubernetes. This lesson covers the core concept, step-by-step implementation, hands-on walkthrough, troubleshooting, and edge cases. Master readiness probes to control when your pods receive traffic, ensuring stable, reliable deployments.

  30. 30
    Configure resource requests and limits

    Configure resource requests and limits for Kubernetes pods. This hands-on tutorial covers core concepts, step-by-step setup, best practices, and troubleshooting to optimize cluster performance.

  31. 31
    Set up a HorizontalPodAutoscaler

    Set up a HorizontalPodAutoscaler in Kubernetes: step-by-step tutorial covering core concepts, hands-on exercise, troubleshooting, and next steps for progressive mastery.

  32. 32
    Monitor pod CPU and memory usage

    Learn how to monitor pod CPU and memory usage in Kubernetes. This lesson covers essential metrics, hands-on steps, troubleshooting, and what to study next.

  33. 33
    Create a Kubernetes Job

    Learn how to create a Job for batch processing in Kubernetes. This hands-on tutorial covers step-by-step creation, troubleshooting, and best practices for running short-lived tasks reliably.

  34. 34
    Schedule recurring tasks with CronJob

    Learn to schedule recurring tasks in Kubernetes using CronJob. This lesson covers the core concept, step-by-step setup, hands-on exercise, troubleshooting, and what to study next to automate routine jobs.

  35. 35
    Affinity & Anti-Affinity Rules

    Master Kubernetes node and pod affinity rules to control workload placement: required vs preferred constraints, operators, and practical YAML examples.

  36. 36
    Apply Taints and Tolerations to Nodes

    Learn to apply taints and tolerations to nodes in Kubernetes. This hands-on tutorial covers core concepts, step-by-step exercises, troubleshooting, and edge cases for scheduling control.

  37. 37
    Use nodeSelector for Pod Placement

    Learn how to use nodeSelector for pod placement in Kubernetes. This lesson covers the core concept, step-by-step setup, hands-on exercise, troubleshooting, and what to study next.

  38. 38
    Enable cluster autoscaling

    Enable cluster autoscaling in Kubernetes: understand the concept, configure a cluster to auto-add nodes when pods are pending, and test with a hands-on exercise. Covers prerequisites, step-by-step walkthrough, comparison with manual scaling, troubleshooting edgecases, and next steps.

  39. 39
    Ingress & Ingress Controller

    Learn how Ingress and Ingress Controllers route external traffic to Kubernetes services. This lesson covers the core concepts, compares options, provides a hands-on walkthrough, and prepares you for next steps.

  40. 40
    Set Up NGINX Ingress

    Set up an NGINX Ingress Controller in this Kubernetes tutorial — practical, step-by-step, lesson 40.

  41. 41
    Secure an Ingress with TLS

    Learn to secure an Ingress with TLS in Kubernetes: generate a certificate, create a TLS secret, and configure the Ingress resource for HTTPS traffic. Hands-on steps, edge cases, and next lesson included.

  42. 42
    Cert-Manager TLS

    Manage TLS certificates with Cert-Manager in Kubernetes. This lesson covers automated certificate lifecycle, issuance, and renewal using Let's Encrypt, with hands-on exercises and troubleshooting.

  43. 43
    Pod isolation via NetworkPolicies

    Kubernetes NetworkPolicies control pod-to-pod traffic. Learn how to define and apply rules to isolate workloads for security.

  44. 44
    Back Up and Restore etcd Data

    Learn to back up and restore etcd data in Kubernetes with hands-on steps, troubleshooting, and best practices for cluster resilience.

  45. 45
    Safe Cluster Upgrade

    Perform a cluster upgrade safely in this hands-on Kubernetes tutorial. Learn the step-by-step process, best practices, and common pitfalls to ensure zero downtime during upgrades.

  46. 46
    Use kubectl apply

    Learn to use kubectl apply with declarative config in this Kubernetes tutorial. Understand the core concept, walk through hands-on exercises, compare options, and troubleshoot edge cases. Step 47 of the Kubernetes learning path.

  47. 47
    Master kubectl context management

    Master kubectl context management in this hands-on Kubernetes tutorial. Learn to efficiently switch between clusters, users, and namespaces using kubectl config commands. Includes practical exercises, troubleshooting tips, and edge cases for robust context management.

  48. 48
    kubectl describe and logs debug

    Learn to debug Kubernetes pods and deployments using kubectl describe and logs. This practical lesson covers core concepts, step-by-step walkthrough, troubleshooting, and edge cases for effective diagnostic workflows.

  49. 49
    kubectl exec for debugging

    Learn to use kubectl exec for interactive debugging in Kubernetes. This lesson covers core concepts, step-by-step walkthroughs, troubleshooting, and best practices for diagnosing running pods.

  50. 50
    PodDisruptionBudget Basics

    Learn to implement PodDisruptionBudget for availability in Kubernetes — hands-on steps to protect workloads during disruptions.

  51. 51
    HorizontalPodAutoscaler Scaling

    Learn to use HorizontalPodAutoscaler for scaling in Kubernetes. A practical, step-by-step tutorial covering core concepts, hands-on exercises, troubleshooting, and next steps.

  52. 52
    Configure VerticalPodAutoscaler

    Learn to configure VerticalPodAutoscaler in Kubernetes for automatic resource management — hands-on steps, options, and troubleshooting.

  53. 53
    Manage Secrets with External Secrets Operator

    Manage secrets with External Secrets Operator — kubernetes tutorial. Learn how to securely sync external secrets into your cluster with hands-on steps, comparison, and troubleshooting.

  54. 54
    StatefulSet with Persistent Storage

    Deploy a StatefulSet with persistent storage in Kubernetes — step-by-step exercise covering PVCs, volume claim templates, and ordered pod management.

  55. 55
    Use Helm for package management

    Learn how to use Helm for package management in Kubernetes — simplified steps to install, configure, and manage Helm charts effectively.

  56. 56
    Create and publish a Helm chart

    Learn how to create and publish a Helm chart in this hands-on Kubernetes tutorial. Step-by-step guide with troubleshooting tips and next steps.

  57. 57
    Organize Charts with Dependencies

    Learn to structure Helm charts with dependencies, enabling modular, reusable deployments. This hands-on lesson covers defining requirements, updating dependencies, and managing version constraints for organized Kubernetes applications.

  58. 58
    Monitor Cluster with Prometheus

    Learn to monitor a Kubernetes cluster using the Prometheus stack. This lesson covers installation, configuration, and key metrics to observe for cluster health.

  59. 59
    Set up Grafana dashboards

    Learn to set up Grafana dashboards for Kubernetes metrics with hands-on steps, troubleshooting, and next topics.

  60. 60
    Collect and Query Logs with Loki

    Learn to collect and query logs with Loki in Kubernetes. This lesson covers setting up Loki, querying logs via LogQL, and troubleshooting common issues. Hands-on exercises included.

  61. 61
    Enable tracing with Jaeger or OpenTelemetry

    Learn how to enable tracing in Kubernetes using Jaeger or OpenTelemetry. This lesson covers setup, configuration, and practical steps to integrate tracing for monitoring distributed systems.

  62. 62
    Implement RBAC for Cluster Security

    Learn to secure your Kubernetes cluster with Role-Based Access Control (RBAC). This hands-on tutorial covers roles, bindings, and best practices to enforce least-privilege access.

  63. 63
    Service Accounts & Roles

    Learn to configure Kubernetes service accounts and roles for pod-level identity and access control.

  64. 64
    Pod Security Standards

    Apply Kubernetes Pod Security Standards (PSA) to enforce security policies on pods. This lesson covers the core concept, step-by-step implementation, and hands-on exercises.

  65. 65
    OPA/Gatekeeper Policy Enforcement

    Enforce policies in Kubernetes using OPA/Gatekeeper. Step-by-step tutorial covers installation, ConstraintTemplate creation, and admission control for production compliance.

  66. 66
    Deploy a service mesh with Istio

    Learn to deploy a service mesh with Istio on Kubernetes in a hands-on lesson. Master step-by-step configuration, traffic management, troubleshooting, and best practices for resilient microservices communication.

  67. 67
    Set up mTLS between services

    Learn how to set up mutual TLS (mTLS) between Kubernetes services for secure service-to-service communication. This lesson covers the core concept, step-by-step configuration, hands-on walkthrough, and troubleshooting tips.

  68. 68
    Canary Deployments with Flagger

    Implement canary deployments with Flagger in Kubernetes. This lesson shows how to automate progressive delivery, monitor traffic shifts, and roll back safely using Flagger.

  69. 69
    Automate GitOps with ArgoCD

    Learn how to automate GitOps with ArgoCD in this hands-on Kubernetes tutorial. Covers the core concept, step-by-step walkthrough, troubleshooting, and next steps for progressive mastery.

kubernetes — step-by-step tutorials

What you will find here

This track walks through kubernetes in order — each lesson is server-rendered HTML you can read without JavaScript. Follow the outline, then practice in the browser IDE when a lesson links to runnable code.

Tutorials vs quizzes and code samples

Tutorials teach in sequence. For quick checks use quizzes. For copy-paste snippets see code samples. For deeper reading browse articles.