CKAD Practice Tasks by Exam Domain
Practice CKAD skills with 25 hands-on Kubernetes scenarios grouped by exam domain, each with verification steps, hints, and worked solutions.
Kubernetes Taints and Tolerations with Examples
Learn Kubernetes taints and tolerations with practical examples. Test NoSchedule, PreferNoSchedule, NoExecute, nodeSelector, and kubectl taint.
Kubernetes Private Registry: Why, Setup, and imagePullSecrets
Learn why Kubernetes needs a container registry, set up public and private registries, pull images directly or with imagePullSecrets, and choose between docker-registry Secrets, auth files, and tokens.
kubectl Commands and Kubernetes YAML Examples
kubectl applies declarative YAML, generates manifests with dry-run, patches live objects, and filters output with JSONPath and custom columns on any Kubernetes cluster.
Kubernetes Namespaces: Create, Switch, and Manage with kubectl
Learn what Kubernetes namespaces are, how namespaced resources differ from cluster-scoped objects, and how to create namespaces, switch with -n, and set a default namespace on your kubectl context.
Build, Tag and Push Container Images for Kubernetes
Build a container image with Podman or Docker, tag and push it to a registry, and reference it from a Kubernetes Pod or Deployment with imagePullPolicy.
Troubleshoot a Kubernetes Service That Is Not Working
Troubleshoot a Kubernetes Service that does not route traffic by testing Pod IP, EndpointSlices, ClusterIP, DNS, and external exposure in an inside-out workflow.
Fix a Kubernetes Deployment Not Creating Pods
Diagnose a Kubernetes Deployment that creates no Pods by checking replicas, ReplicaSets, FailedCreate events, selectors, quotas, and admission errors.
Delete a Stuck or Terminating Kubernetes Pod
Delete a Kubernetes Pod stuck in Terminating by checking grace periods, preStop hooks, finalizers, node reachability, and force-deletion risks.
Fix Kubernetes Pods Stuck in Pending or ContainerCreating
Fix Kubernetes Pods stuck in Pending or ContainerCreating using scheduling conditions, Events, PVCs, mounts, sandbox checks, image errors, and init logs.
Fix Kubernetes ImagePullBackOff and ErrImagePull
Diagnose and fix Kubernetes ImagePullBackOff and ErrImagePull using Pod events, image references, pull Secrets, policies, TLS, DNS, and platform checks.
Fix Kubernetes CrashLoopBackOff Errors
Diagnose Kubernetes CrashLoopBackOff using restart counts, events, previous logs, exit codes, commands, probes, configuration, dependencies, and OOM signals.
Kubernetes Pod Troubleshooting Workflow
Troubleshoot Kubernetes Pods using STATUS, conditions, events, logs, exit codes, image checks, probes, volumes, scheduling, and Service routing.
Kubernetes DNS Troubleshooting: Services, CoreDNS and Name Resolution
Troubleshoot Kubernetes DNS using Service names, resolv.conf, ndots, CoreDNS health, forwarding, NXDOMAIN, SERVFAIL, and timeout checks.
Kubernetes Architecture: Control Plane and Worker Node Components
Learn how Kubernetes control plane and worker node components work together, from kube-apiserver and etcd to kubelet and CRI, and trace a Deployment from kubectl apply to running Pods and Service endpoints.
Kubernetes NetworkPolicy with Examples
Isolate Kubernetes Pods with NetworkPolicy default-deny rules, allow ingress and egress with podSelector and namespaceSelector, permit DNS, and verify allowed and blocked paths between namespaces.
Kubernetes Services, Endpoints and EndpointSlices
Create Kubernetes ClusterIP, NodePort, LoadBalancer and headless Services, inspect EndpointSlices, and see how selectors and readiness control traffic.
kubectl port-forward with Pods, Deployments and Services
Use kubectl port-forward to reach Pod, Deployment, and Service ports on your workstation for temporary local testing without NodePort, LoadBalancer, or Ingress.
Kubernetes Ingress Rules with Host, Path and TLS Examples
Configure Kubernetes Ingress rules for host-based and path-based HTTP routing, choose ingressClassName and pathType, add TLS with a Secret, and verify traffic reaches the right Service.
Fix Kubernetes OOMKilled and Exit Code 137
Diagnose Kubernetes OOMKilled and exit code 137 using termination reasons, cgroup debugging inside the container, node dmesg, memory limits, QoS, kubectl top, and controlled OOM tests.
Linux Capabilities in Kubernetes
Inspect Linux capabilities in Kubernetes, drop ALL runtime defaults, add back CHOWN or NET_BIND_SERVICE, and compare capabilities with privileged mode.
Kubernetes command and args, Environment Variables and Downward API
Learn Kubernetes command and args overrides, environment variables, ConfigMap and Secret references, and Downward API fields with practical examples.
Kubernetes ServiceAccounts with Examples
Create a Kubernetes ServiceAccount, inspect projected tokens, request short-lived credentials, disable automount, and verify identity and RBAC authorization.
Kubernetes RBAC with Examples
Create Kubernetes Role and ClusterRole rules, bind them to ServiceAccounts, verify permissions with kubectl auth can-i, and troubleshoot forbidden API errors.
Kubernetes ConfigMap with Examples
Create Kubernetes ConfigMaps from literals, files, and YAML, then inject configuration into Pods with configMapKeyRef, envFrom, and read-only volume mounts.
Kubernetes ResourceQuota and LimitRange with Examples
Apply Kubernetes ResourceQuota and LimitRange in one namespace, trigger admission failures, inject default requests and limits, and read hard versus used quota consumption.
Kubernetes SecurityContext with Practical Examples
Configure Kubernetes SecurityContext with practical non-root, fsGroup, read-only filesystem, privilege-escalation, and RuntimeDefault seccomp examples.
Kubernetes Authentication, Authorization and Admission Control
Follow a kubectl apply request through Kubernetes authentication, authorization, and admission control, and learn how 401 and 403 responses map to each stage.
Kubernetes Secrets with Examples
Create Kubernetes Secrets from literals, files, and YAML; consume them with secretKeyRef, envFrom, and volumes; and create TLS and registry Secrets.
Kubernetes Requests, Limits and QoS Classes
Configure Kubernetes CPU and memory requests, limits, and QoS classes, and understand scheduling, throttling, OOM behaviour, and Pod-level resources.






