100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace

Kubernetes Cheat Sheet

Kubernetes Cheat Sheet

kubectl commands, pod management, deployments, and cluster operations.

3 PagesAdvancedApr 28, 2026

kubectl Basics

Core cluster inspection commands.

bash
kubectl get pods                    # List podskubectl get pods -n my-namespace    # In a namespacekubectl describe pod <name>         # Detailed infokubectl logs <pod-name>             # View logskubectl exec -it <pod-name> -- sh   # Shell into pod

Deployments

Manage application deployments.

bash
kubectl apply -f deployment.yamlkubectl get deploymentskubectl scale deployment my-app --replicas=5kubectl rollout status deployment my-appkubectl rollout undo deployment my-app

Services

Expose pods on the network.

yaml
apiVersion: v1kind: Servicemetadata:  name: my-servicespec:  selector:    app: my-app  ports:    - port: 80      targetPort: 8080  type: ClusterIP
Pro Tip

Use kubectl get pods -o wide and kubectl top pods to quickly diagnose scheduling and resource issues.

Was this cheat sheet helpful?

Explore Topics

#Kubernetes#KubernetesCheatSheet#DevOps#Advanced#KubectlBasics#Deployments#Services#Kubectl#CheatSheet#SkillVeris
Advertisement
Sri Hayavadhana Info-Tech

Professional Web Designing Services

  • Responsive Websites
  • E-commerce Solutions
  • SEO Friendly Design
  • Fast & Secure
  • Support & Maintenance
Get a Free Quote

Share this Cheat Sheet