Articles by Deepak Prasad
How ConfigMap and Secret Updates Reach Running Pods
Learn when Kubernetes updates ConfigMap and Secret values inside running Pods, why environment variables stay fixed, how volume projection works, and when to roll out new Pods.
Debug Kubernetes Pods with kubectl exec and kubectl debug
Use kubectl exec for running containers with a shell, then kubectl debug ephemeral containers and --copy-to for distroless images, crash loops, and isolated debug Pods.
kubectl logs, Events and describe with Examples
Use kubectl get, describe, events, and logs to inspect Pod status, warning events, multi-container output, previous logs, and container restart failures.
Monitor Kubernetes Pods and Nodes with kubectl top
Install Metrics Server and use kubectl top to monitor CPU and memory for Kubernetes nodes, Pods, and containers with sorting and troubleshooting examples.
Kubernetes Liveness, Readiness and Startup Probes
Configure Kubernetes liveness, readiness, and startup probes with HTTP, TCP, exec, and gRPC examples, failure tests, and timing guidance.
Kubernetes API Deprecations and Manifest Migration
Find deprecated apiVersion strings in manifests, map legacy APIs to supported replacements, migrate Ingress from v1beta1 to v1, validate with server-side dry-run, and apply corrected YAML on any cluster.
Manage Kubernetes Resources with apply, edit, patch and replace
Learn kubectl apply, edit, patch, replace, diff, and dry-run with practical Deployment examples and guidance on declarative versus live updates.
Kustomize: Kubernetes Bases, Overlays and Patches
Use Kubernetes Kustomize bases and overlays to patch manifests, change images and replicas, generate configuration, preview changes, and apply with kubectl.
Kubernetes Blue-Green and Canary Deployments with Examples
Learn Kubernetes blue-green and canary deployments with YAML examples. Switch Service selectors, test mixed traffic, promote releases, and roll back.
Deploy Applications on Kubernetes with Helm
Install Helm, deploy and customize charts, upgrade and roll back releases, inspect history, and create, render, package, and test a basic Helm chart.
Kubernetes Deployments, Rolling Updates and Rollbacks
Create and scale Kubernetes Deployments, configure rolling updates with maxSurge and maxUnavailable, pause rollouts, inspect revisions, and roll back failed releases.
Kubernetes subPath Volume Mounts with Examples
Use Kubernetes subPath to mount one file or directory, preserve image files, split a volume across paths, and handle ConfigMap update limitations.
Kubernetes Job vs CronJob: Differences and When to Use Each
Compare Kubernetes Job vs CronJob for one-time and scheduled batch work, including controller flow, retries, concurrency, suspension, and when to use each.
Kubernetes Jobs with Examples
Create a Kubernetes Job with YAML, watch completions and parallelism, control retries with backoffLimit, limit runtime with activeDeadlineSeconds, and clean up finished Jobs with ttlSecondsAfterFinished.
Kubernetes PersistentVolume and PVC with Examples
Create a static PersistentVolume, bind a PersistentVolumeClaim, mount the claim in a Pod, verify data survives Pod deletion, and troubleshoot Pending claims and reclaim policies.
Kubernetes Volumes with Practical Examples
Learn Kubernetes volumes with YAML examples for emptyDir, ConfigMap, Secret, projected, hostPath, shared mounts, and Pod volume lifetime.
Kubernetes CronJobs with Examples
Learn Kubernetes CronJobs with YAML examples. Configure schedules, time zones, concurrency, missed-run deadlines, suspension, history, and manual Jobs.
Kubernetes StatefulSet with Examples
Create a Kubernetes StatefulSet with a headless Service and volumeClaimTemplates, verify stable Pod names and DNS, test persistent storage across Pod recreation, scale in ordinal order, and manage rolling updates and PVC …
Kubernetes Sidecar and Multi-Container Patterns with Examples
Learn Kubernetes sidecar containers with YAML. Compare native sidecars, shared volumes, localhost communication, adapter, and ambassador patterns.
Kubernetes ReplicaSet with Examples
Create a Kubernetes ReplicaSet with YAML, verify DESIRED and READY counts, test Pod replacement and scaling, compare ReplicaSet with Deployment, and see how Deployments manage ReplicaSets.
Kubernetes Pod vs Deployment: Differences and When to Use Each
Compare Kubernetes Pod vs Deployment: key differences, minimal YAML for each, what happens when a Pod is deleted, scaling and updates, and when to use a bare Pod or a Deployment.
Kubernetes Init Containers with Examples
Create Kubernetes init containers with YAML, run sequential setup before application containers start, share an emptyDir volume, inspect Init status and logs, understand failure and restart behaviour, and compare init …
Kubernetes Deployment vs StatefulSet: Differences and When to Use Each
Compare Kubernetes Deployment vs StatefulSet: pod identity, storage, scaling, rollouts, when to use each, common selection mistakes, and a decision checklist for stateless versus stateful workloads.
Kubernetes DaemonSet with Examples
Create a Kubernetes DaemonSet with YAML, verify one Pod per eligible node, restrict placement with nodeSelector, tolerate control-plane taints, replace missing Pods, and perform rolling updates and rollback.
Set ulimit in Kubernetes Pods: open files, nproc, and process limits
Fix Too many open files (EMFILE) and set ulimit-style nofile, nproc, and file size limits in Kubernetes pods using a prlimit or ulimit entrypoint—separate from CPU and memory resources.limits, with Pod examples you can …
Kubernetes Deployment vs DaemonSet: Differences and When to Use Each
Compare Kubernetes Deployment vs DaemonSet by Pod placement, scaling, updates, and use cases. Learn when to choose application replicas or per-node agents.
Kubernetes Pods and Pod Lifecycle
Learn what a Kubernetes Pod is, create and inspect Pods with YAML and kubectl, read phases and container states, configure restartPolicy and lifecycle hooks, and understand graceful shutdown versus controller-managed …
Choose a Kubernetes Workload Resource
Compare Kubernetes Pod, ReplicaSet, Deployment, StatefulSet, DaemonSet, Job, and CronJob workload resources and choose the right controller for stateless, stateful, node-level, and batch applications.
Kubernetes Labels vs Annotations: Key Differences
Compare Kubernetes labels and annotations: what each field is for, how selectors treat them, value limits, and when to use labels for grouping versus annotations for descriptive metadata.
Kubernetes Annotations with Examples
Learn what Kubernetes annotations are, add them in YAML or with kubectl annotate, view and remove annotation keys, and choose annotations instead of labels for non-identifying metadata.

