Key Takeaways
- ✓Essential kubectl commands, API objects and deployment patterns all on one page
- ✓IT teams spend 34 working days per year solving Kubernetes problems - a cheatsheet reduces this time
This Kubernetes training cheatsheet brings together essential commands, key concepts and practical references to support your learning. Whether you're preparing for a certification or consolidating your skills after training, this practical Kubernetes reference will serve as your daily guide. According to the CNCF Annual Survey 2025, 82% of container users operate Kubernetes in production. This massive adoption makes solid Kubernetes training reference essential.
TL;DR: Bookmark this page. It contains essential kubectl commands, main API objects, deployment patterns and diagnostic resources to succeed in your Kubernetes projects.
This skill is at the heart of the Kubernetes Fundamentals training.
Why use a Kubernetes training cheatsheet?
IT teams spend an average of 34 working days per year solving Kubernetes problems according to Cloud Native Now. A Kubernetes training cheatsheet reduces this time by centralizing critical commands and concepts.
Key takeaway: A cheatsheet is not a substitute for practice, but an accelerator to quickly find a syntax or concept.
Use this resource to:
- Review before a CKA, CKAD or CKS exam
- Quickly troubleshoot a production cluster
- Onboard new team members
Consult the complete Kubernetes Training guide to deepen each concept presented here.
Essential kubectl commands in your Kubernetes training cheatsheet
kubectl mastery is fundamental. Here are the commands you'll use daily:
Resource management
# List pods in current namespace
kubectl get pods
# List all pods from all namespaces
kubectl get pods -A
# Get pod details
kubectl describe pod <pod-name>
# Create a resource from a YAML file
kubectl apply -f deployment.yaml
# Delete a resource
kubectl delete pod <pod-name>
Debugging and logs
# Display pod logs
kubectl logs <pod-name>
# Follow logs in real time
kubectl logs -f <pod-name>
# Execute a command in a container
kubectl exec -it <pod-name> -- /bin/sh
# Display cluster events
kubectl get events --sort-by='.lastTimestamp'
Key takeaway: Add-o wideto yourgetcommands to display more information (node, IP).
To go further, explore our Kubernetes Monitoring and Troubleshooting section.
Kubernetes API objects: reference table
| Object | Abbreviation | Description |
|---|---|---|
| Pod | po | Basic unit, one or more containers |
| Deployment | deploy | Declarative management of ReplicaSets |
| Service | svc | Network exposure of pods |
| ConfigMap | cm | Non-sensitive external configuration |
| Secret | secret | Base64 encoded sensitive data |
| Namespace | ns | Logical resource isolation |
| PersistentVolumeClaim | pvc | Persistent storage request |
| Ingress | ing | External HTTP/HTTPS routing |
Deepen these concepts in the Kubernetes Cluster Administration section.
Deployment patterns: Kubernetes training practical sheet
Choosing the right deployment strategy directly impacts your application availability.
| Strategy | Use case | Risk |
|---|---|---|
| Rolling Update | Progressive update without downtime | Medium |
| Recreate | Applications not supporting multiple versions | High |
| Blue/Green | Instant rollback required | Low |
| Canary | Validation on a subset of users | Low |
# Rolling Update example in a Deployment
spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
Key takeaway: maxUnavailable: 0 ensures no pod becomes unavailable during the update.
Consult our guide Kubernetes Deployment and Production for advanced practical cases.
Labels and selectors: quick Kubernetes training reference
Labels are the grouping and selection mechanism in Kubernetes.
# Define labels
metadata:
labels:
app: frontend
env: production
version: v2.1.0
# Select with kubectl
kubectl get pods -l app=frontend,env=production
Best practices:
- Use semantic labels:
app,env,tier,version - Standardize team conventions
- Avoid labels with special characters
For naming conventions, refer to Containerization and Docker Best Practices.
Resources and limits: configure pods correctly
Defining CPU and memory resources prevents stability issues in production.
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
| Parameter | Meaning |
|---|---|
| requests.cpu | CPU guaranteed to the pod |
| requests.memory | Guaranteed memory |
| limits.cpu | Maximum allowed CPU |
| limits.memory | Max memory before OOMKill |
According to Spectro Cloud State of Kubernetes 2025, 80% of organizations operate Kubernetes in production with an average of 20+ clusters. Good resource management is critical at this scale.
Kubernetes certifications: Kubernetes training cheatsheet path
| Certification | Prerequisites | Exam duration | Validity |
|---|---|---|---|
| CKA | Cluster admin experience | 2h | 2 years |
| CKAD | K8s development experience | 2h | 2 years |
| CKS | Valid CKA | 2h | 2 years |
The LFS458 Kubernetes Administration training prepares for CKA in 4 days. For CKAD, follow the LFD459 training over 3 days.
Consult the details of Kubernetes Certifications CKA CKAD CKS to plan your path.
Quick diagnostic commands
# Check cluster status
kubectl cluster-info
# List nodes and their status
kubectl get nodes
# Identify pods in error
kubectl get pods --field-selector=status.phase!=Running
# Resource consumption per node
kubectl top nodes
# Resource consumption per pod
kubectl top pods
Explore the Kubernetes Tutorials and Practical Guides for hands-on exercises.
Next steps: from cheatsheet to mastery
This Kubernetes training cheatsheet lays the foundation. To progress:
- Beginners: Start with Kubernetes Fundamentals
- Administrators: Deepen Kubernetes Security
- Developers: Master Kubernetes Application Development
Key takeaway: Regular practice on a test cluster remains the best complement to any reference sheet.
Take action with SFEIR Institute
Transform this reference into certified skills:
- Kubernetes Fundamentals: 1-day discovery
- LFS458 Kubernetes Administration: 4-day CKA preparation
- LFD459 Kubernetes for Developers: 3-day CKAD preparation
- LFS460 Kubernetes Security: 4-day CKS preparation
Contact our advisors to build your personalized training path.