Kubectl
15 tutorials and guides tagged Kubectl on IT Wonder Lab, with step-by-step examples and code you can run.
- Kubernetes Tutorials
Kubernetes ConfigMaps and Secrets: Environment Variables, Files and Best Practices
Create ConfigMaps and Secrets, inject them as environment variables or mounted files, update them safely, protect secrets and fix the common errors.
- Kubernetes Tutorials
Kubernetes Persistent Volumes, PVC and StorageClass: Complete Guide
Keep data across pod restarts with PersistentVolumes, PersistentVolumeClaims, StorageClasses and StatefulSets: access modes, resizing, backups and troubleshooting.
- Kubernetes Tutorials
kubectl Cheat Sheet: Install and Essential Commands for Kubernetes
Install kubectl, manage contexts and namespaces and use the commands you need every day to create, inspect, debug, scale and delete Kubernetes resources.
- AWS Tutorials
jq Cheat Sheet: Process AWS CLI and kubectl JSON Output
Install jq and learn the filters you need for AWS CLI and kubectl JSON: select fields, filter arrays, build new objects, group, count and use shell variables.
- Kubernetes Tutorials
Kubernetes Pods and Deployments: Replicas, Rolling Updates and Rollbacks
Learn what a Pod, ReplicaSet and Deployment are, write a manifest, scale, update with zero downtime, roll back and fix the common errors, with an FAQ.
- Containers and Orchestration
kubectl
kubectl is the command line client of Kubernetes: it sends requests to the API server to create, inspect, change and debug cluster resources.
- Kubernetes Tutorials
Kubernetes Overlays with Kustomize: One Base, Many Environments
Use Kustomize with kubectl to keep one set of manifests and patch them per environment: namespaces, replicas, images, ConfigMaps and strategic merge patches.
- Kubernetes Tutorials
Kubernetes Pod Stuck in Pending: Causes, Debugging and Fixes
Why a Kubernetes pod stays Pending: insufficient CPU or memory, taints, node selectors, unbound PVCs, quotas and zones. How to read FailedScheduling and fix it.
- Kubernetes Tutorials
Kubernetes Probes and Resource Limits: Liveness, Readiness, Requests and OOMKilled
Configure liveness, readiness and startup probes and CPU and memory requests and limits, understand QoS and OOMKilled, and debug restarts and throttling.
- Kubernetes Tutorials
Kubernetes Services and Ingress: ClusterIP, NodePort, LoadBalancer and Routing
Expose Kubernetes apps: ClusterIP, NodePort and LoadBalancer Services, Ingress with host and path routing and TLS, DNS, plus common errors and how to debug them.
- Kubernetes Tutorials
Kubernetes Architecture Explained: Control Plane, Nodes and Components
How Kubernetes works: API server, etcd, scheduler, controller manager, kubelet, kube-proxy and the container runtime, with what happens when you run kubectl apply.
- Kubernetes Tutorials
Kubernetes Horizontal Pod Autoscaler (HPA): CPU, Memory and Custom Metrics
Scale a Deployment automatically with the Horizontal Pod Autoscaler: install metrics-server, set targets, tune scaling behavior, load test and fix HPA errors.
- Kubernetes Tutorials
Kubernetes CrashLoopBackOff: Causes, How to Debug and How to Fix It
Why a Kubernetes pod is in CrashLoopBackOff and how to fix it: read the previous logs, exit codes, OOMKilled, bad probes, missing config, wrong command and dependencies.
- Kubernetes Tutorials
Kubernetes Namespaces and RBAC: Roles, ServiceAccounts, Quotas and kubectl auth can-i
Split a cluster with namespaces and control access with RBAC: Roles, ClusterRoles, bindings, ServiceAccounts, quotas, limit ranges and how to fix Forbidden errors.
- Kubernetes Tutorials
How to Debug Kubernetes: kubectl logs, describe, events, exec and debug
A step-by-step method to troubleshoot Kubernetes pods, services and nodes with kubectl get, describe, logs, events, exec, port-forward and ephemeral debug containers.