🚀 Kubernetes Cheat Sheet Every DevOps Engineer Should Know Working with Kubernetes daily? Mastering the right kubectl commands can save you hours of debugging and deployment friction. Here’s a simplified breakdown of the essentials: 🔹 Cluster Management Quickly check cluster health, nodes, and versions to ensure your environment is stable. 🔹 Pod Operations From listing pods to viewing logs and executing commands inside containers — this is your go-to for troubleshooting. 🔹 Services & Networking Expose applications, manage services, and port-forward traffic for local testing. 🔹 Deployments Create, scale, and roll out updates seamlessly. This is where your app lifecycle truly lives. 🔹 Namespaces Organize workloads and isolate environments (dev, staging, prod) efficiently. 🔹 Resources Management Apply, edit, and delete configurations using YAML — the backbone of Kubernetes automation. 🔹 Monitoring & Events Track resource usage and debug issues with events and metrics. 🔹 Permissions (RBAC) Control access and secure your cluster with roles and bindings. 💡 Pro Tip: Start by mastering just a few commands like kubectl get, describe, logs, and apply — they cover 80% of real-world use cases. Kubernetes isn’t about memorizing commands — it’s about understanding how everything connects. #Kubernetes #DevOps #CloudComputing #Docker #SRE #PlatformEngineering #TechTips
Kubernetes Essentials for DevOps Engineers
More Relevant Posts
-
🚨 Top Kubernetes Issues I Faced (and How I Debugged Them) While working on my DevOps projects, I faced several common Kubernetes issues. Here are a few and how I approached them: 1️⃣ CrashLoopBackOff → Checked logs using kubectl logs → Found application crash / wrong config 2️⃣ ImagePullBackOff → Verified image name and tag → Checked DockerHub access 3️⃣ Pod Running but Not Ready (0/1) → Used kubectl describe pod → Found readiness probe failure 4️⃣ Service Not Accessible → Checked service type and port mapping → Verified endpoints 5️⃣ Deployment Not Updating → Checked rollout status → Used kubectl rollout restart / undo What I learned: Most issues are not complex — they just need a clear debugging approach. Still improving by breaking and fixing things. #DevOps #Kubernetes #Troubleshooting #Learning
To view or add a comment, sign in
-
Source: https://lnkd.in/ePK_w7RS 🚀 DevOps Isn’t Just About Tools 🚀 A candidate knew Kubernetes but couldn’t explain why kubectl apply works. This highlights a gap: tools like KEDA or GitLab CI are part of the ecosystem, not the essence of DevOps. 🧠 Why Systems Matter: Understanding how infrastructure scales, how failures recover, and how observability is designed is key. Tools change—Kubernetes may evolve—but principles like automation and collaboration stay. 💡 Pro Tip: Focus on fundamentals (networking, reliability) over tool fluency. A great DevOps engineer builds systems, not just deploys them. #DevOps #Kubernetes #SystemsThinking
To view or add a comment, sign in
-
-
🚀 𝗥𝗲𝗮𝗹 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 𝗜𝘀𝘀𝘂𝗲𝘀 𝗜 𝗙𝗮𝗰𝗲𝗱 𝗗𝘂𝗿𝗶𝗻𝗴 𝗙𝗶𝗿𝘀𝘁-𝗧𝗶𝗺𝗲 𝗗𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁 (𝗪𝗶𝘁𝗵 𝗖𝗼𝗺𝗺𝗮𝗻𝗱𝘀) During initial Kubernetes deployments, I faced several real-world issues. Sharing some common scenarios along with the commands I used to troubleshoot: 🔴 1. 𝗖𝗿𝗮𝘀𝗵𝗟𝗼𝗼𝗽𝗕𝗮𝗰𝗸𝗢𝗳𝗳 📌 Issue: Pod was continuously restarting 🔍 Troubleshooting: kubectl get pods kubectl logs <pod-name> kubectl describe pod <pod-name> 🛠️ Fix: Identified missing environment variable Updated deployment YAML kubectl apply -f deployment.yaml 🔴 2. 𝗜𝗺𝗮𝗴𝗲𝗣𝘂𝗹𝗹𝗕𝗮𝗰𝗸𝗢𝗳𝗳 📌 Issue: Pod failed to pull image 🔍 Troubleshooting: kubectl describe pod <pod-name> 🛠️ Fix: Verified image name/tag Configured imagePullSecret for private registry 🔴 3. 𝗣𝗼𝗱 𝗶𝗻 𝗣𝗲𝗻𝗱𝗶𝗻𝗴 𝗦𝘁𝗮𝘁𝗲 📌 Issue: Pod stuck in Pending 🔍 Troubleshooting: kubectl get pods kubectl describe pod <pod-name> 🛠️ Fix: Checked node resources Adjusted CPU/Memory requests in YAML 🔴 4. 𝗖𝗼𝗻𝗳𝗶𝗴𝗠𝗮𝗽 / 𝗦𝗲𝗰𝗿𝗲𝘁 𝗜𝘀𝘀𝘂𝗲𝘀 📌 Issue: Application failed to start 🔍 Troubleshooting: kubectl get configmap kubectl get secrets kubectl describe pod <pod-name> 🛠️ Fix: Corrected ConfigMap/Secret reference in deployment 🔴 5. 𝗟𝗶𝘃𝗲𝗻𝗲𝘀𝘀 / 𝗥𝗲𝗮𝗱𝗶𝗻𝗲𝘀𝘀 𝗣𝗿𝗼𝗯𝗲 𝗙𝗮𝗶𝗹𝘂𝗿𝗲 📌 Issue: Pod restarting repeatedly 🔍 Troubleshooting: kubectl describe pod <pod-name> kubectl logs <pod-name> 🛠️ Fix: Updated probe configuration Increased initialDelaySeconds 💡 Key Learning: Most Kubernetes deployment issues are related to configuration, image, or resource allocation. A structured troubleshooting approach using kubectl commands helps resolve issues quickly. 👉 Real DevOps work = Troubleshooting + Automation #Kubernetes #DevOps #Troubleshooting #CloudNative #Docker #CICD #Learning
To view or add a comment, sign in
-
🚨 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 𝗜𝗺𝗮𝗴𝗲𝗣𝘂𝗹𝗹𝗕𝗮𝗰𝗸𝗢𝗳𝗳 / 𝗘𝗿𝗿𝗜𝗺𝗮𝗴𝗲𝗣𝘂𝗹𝗹 - 𝗔 𝗖𝗼𝗺𝗺𝗼𝗻 𝗯𝘂𝘁 𝗖𝗿𝗶𝘁𝗶𝗰𝗮𝗹 𝗜𝘀𝘀𝘂𝗲 As a DevOps Engineer, one of the most frequent deployment failures I see is this 👇 👉 Pods stuck in 𝑬𝒓𝒓𝑰𝒎𝒂𝒈𝒆𝑷𝒖𝒍𝒍 or 𝑰𝒎𝒂𝒈𝒆𝑷𝒖𝒍𝒍𝑩𝒂𝒄𝒌𝑶𝒇𝒇 But what’s really happening behind the scenes? 💡 𝗛𝗲𝗿𝗲’𝘀 𝘁𝗵𝗲 𝗿𝗲𝗮𝗹𝗶𝘁𝘆: Kubernetes (via Kubelet) is unable to pull the container image from the registry. 𝗖𝗼𝗺𝗺𝗼𝗻 𝗿𝗲𝗮𝘀𝗼𝗻𝘀 𝘆𝗼𝘂 𝘀𝗵𝗼𝘂𝗹𝗱 𝗮𝗹𝘄𝗮𝘆𝘀 𝗰𝗵𝗲𝗰𝗸: -> ❌ Incorrect image name or tag -> ❌ Image doesn’t exist in the registry -> 🔐 Authentication issues (missing/wrong imagePullSecrets) -> 🌐 Network connectivity issues from node to registry -> ⏱️ Rate limiting (especially with Docker Hub) 𝗜𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁 𝗯𝗲𝗵𝗮𝘃𝗶𝗼𝗿 𝘁𝗼 𝗿𝗲𝗺𝗲𝗺𝗯𝗲𝗿: -> First, Kubernetes throws 𝗘𝗿𝗿𝗜𝗺𝗮𝗴𝗲𝗣𝘂𝗹𝗹 -> After multiple retries, it shifts to 𝗜𝗺𝗮𝗴𝗲𝗣𝘂𝗹𝗹𝗕𝗮𝗰𝗸𝗢𝗳𝗳 - meaning it’s slowing down (backing off) further attempts. 𝗣𝗿𝗼 𝗧𝗶𝗽 (𝗳𝗿𝗼𝗺 𝗿𝗲𝗮𝗹-𝘄𝗼𝗿𝗹𝗱 𝗲𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲): Always start debugging with: 𝑘𝑢𝑏𝑒𝑐𝑡𝑙 𝑑𝑒𝑠𝑐𝑟𝑖𝑏𝑒 𝑝𝑜𝑑 <𝑝𝑜𝑑-𝑛𝑎𝑚𝑒> It gives you the exact root cause in most cases. 💬 In DevOps, small misconfigurations can stop entire deployments. The key is not just knowing the error - but understanding why it happens. #DevOps #Kubernetes #Docker
To view or add a comment, sign in
-
-
Day 57 - Using Environment Variables in K8s #100DaysOfDevOps 🧑💻 Today's task focused on working with environment variables in Kubernetes. An essential concept for building flexible, production-ready applications. In this task, I created a Pod using a "bash" container that dynamically prints a message by injecting environment variables at runtime. I also configured the container to execute a shell command and ensured a "restartPolicy: Never" to prevent unnecessary restarts after execution. This setup reflects real production use cases where applications depend on environment variables for configuration, making deployments more portable and easier to manage across different environments (dev, staging, production). It’s a small but critical step toward mastering how modern cloud-native applications are configured and deployed at scale. I documented the step-by-step breakdown and YAML configuration in my repo: https://lnkd.in/eifJTWHV Looking forward to Day 58 as I continue building deeper into Kubernetes and DevOps practices 💪 #DevOps #Kubernetes #CloudComputing #Containers #PlatformEngineering #SRE #InfrastructureAsCode
To view or add a comment, sign in
-
Built a complete DevOps workflow today — from Infrastructure to Deployment! Today I worked on a hands-on project where I connected multiple DevOps tools into one pipeline . 🔹 Used Terraform to define and manage infrastructure 🔹 Built a custom Docker image 🔹 Deployed the application on Kubernetes (Minikube) 🔹 Packaged and managed deployment using Helm 🔹 Pushed the complete project to GitHub What I realized today: DevOps is not about individual tools — it’s about how smoothly they integrate together. I also faced some real-world challenges: ❌ ImagePullBackOff (local image vs cluster issue) ❌ Helm nil pointer errors (values.yaml misconfigurations) ❌ Debugging Kubernetes services and NodePorts Key Learnings for every DevOps engineer: Always understand the flow of deployment, not just commands Terraform sets the base → Docker packages → Kubernetes runs → Helm manages Local Kubernetes (Minikube) requires special handling for Docker images Start simple with Helm charts, then scale Debugging is where actual DevOps learning happens 📂 Project Link: 👉 https://lnkd.in/gDNC_-Xz This project gave me a much clearer picture of how real-world deployments actually work. #DevOps #Kubernetes #Docker #Helm #Terraform #GitHub #CloudComputing #LearningInPublic
To view or add a comment, sign in
-
-
Day 48 - Deploying Pods in Kubernetes Cluster #100DaysOfDevOps🧑💻 Today’s task focused on deploying a Pod in a Kubernetes cluster using a declarative manifest. A foundational skill that directly translates to production environments where consistency, version control, and repeatability are critical. I created a pod named "pod-nginx" using the "nginx:latest image", applied proper labeling ("app: nginx_app") for scalability, and defined a clear container name ("nginx-container") to align with observability best practices. Using "kubectl apply", I deployed the workload and verified it, reinforcing the standard workflow used in real-world CI/CD pipelines and cluster operations. This exercise highlights how even simple pods are structured with production in mind, setting the stage for more advanced Kubernetes objects like Deployments and Services. Full implementation and documentation are available on my GitHub: https://lnkd.in/dz3hyMha Excited to keep the momentum going!💪 #DevOps #Kubernetes #K8s #CloudNative #Containers #LearningInPublic #DevOpsJourney #TechCareers
To view or add a comment, sign in
-
🚀 Understanding How Docker Works in DevOps Docker simplifies application deployment by following a powerful and efficient workflow: 📄 Dockerfile → Define application environment & dependencies ⚙️ Build → Create a Docker Image 📦 Docker Image → Portable and consistent package ▶️ Run → Launch as a Docker Container 🔹 Ensures consistency across development, testing, and production 🔹 Eliminates “it works on my machine” issues 🔹 Enables faster and scalable deployments 💡 This workflow is a core foundation of modern DevOps practices and cloud-native applications. Currently exploring Docker along with AWS, Jenkins, and Kubernetes to build real-world DevOps skills 🚀 #DevOps #Docker #Containerization #CloudComputing #AWS #Jenkins #Kubernetes #CI_CD #ITCareer
To view or add a comment, sign in
-
-
Transition 101: From Software Engineer to DevOps Engineer One mistake I’ve seen (and honestly also made early on) is rushing straight into Kubernetes before getting the basics of deployment right. It’s easy to get excited about Kubernetes because it’s powerful and widely used, But here’s what I learned: Kubernetes is meant to scale and orchestrate applications not fix a broken deployment. In the beginning, I focused too much on “learning Kubernetes” instead of making sure the fundamentals were solid. Before even thinking about Kubernetes, I had to understand and get comfortable with: •How my application runs outside my local machine •How to build and package it properly •Environment variables and configuration management •Ports and networking •How services communicate with each other •How to read logs and troubleshoot issues •Basic Linux commands and server navigation •How deployments actually work (build → release → run) Because here’s the reality: If your application is not stable on a simple server or even in a single container, Kubernetes will not fix it. It will only introduce more moving parts: pods, services, ingress, networking layers, scaling rules, And debugging becomes even more complex. What really helped me was taking a step back and focusing on: •Running my app consistently on a server •Containerizing it properly (Docker) • Understanding CI/CD pipelines •Making sure deployments are repeatable and predictable Only after that did Kubernetes start making sense. That’s when I realized: Kubernetes is not step one. It’s a scaling and orchestration tool that comes after your foundation is solid. So if you’re transitioning into DevOps, don’t rush into complex tools. Build strong fundamentals first, Because in this space, clarity beats complexity every time. #DevOps #Kubernetes #SoftwareEngineering #CareerTransition #DevOpsEngineer #TechLessons #LearningJourney
To view or add a comment, sign in
-
-
🚀 Kubernetes in 2026 – A Developer’s Perspective As a software developer, I always thought Kubernetes (Official) was mainly a DevOps tool — something for managing deployments and infrastructure. But after working with it recently, my perspective has completely changed. Kubernetes is no longer just about running containers… it’s becoming a **core part of application development itself**. Here are a few things I experienced while working with it 👇 🔹 From Code to Cluster Ownership Earlier, I focused only on writing APIs and business logic. Now, I’m also thinking about how my application behaves inside Kubernetes — scaling, resource usage, and fault tolerance. 🔹 GitOps Changed My Workflow Using tools like Argo CD, deployments feel much more structured. Instead of manually pushing changes, everything is managed through Git — making the process cleaner and easier to track. 🔹 Debugging in Distributed Systems With microservices running on Kubernetes, debugging is different. Using tools like Prometheus and Grafana gave me better visibility into what’s actually happening inside the system. 🔹 Security is a Developer Responsibility Too I realized that security is not just for DevOps teams. Configuring things like RBAC, secrets, and policies (Kyverno / OPA) is something developers should also understand. 🔹 The Shift Towards Platform Engineering One interesting trend — companies are building internal platforms so developers don’t have to deal with Kubernetes complexity directly. But understanding the fundamentals still gives a big advantage. 💡 My Key Takeaway: Kubernetes is no longer just an infrastructure tool — it’s becoming part of a developer’s daily workflow. Still learning, still exploring — but definitely excited about where this is going 🚀 #Kubernetes #SoftwareDevelopment #DevOps #Cloud #GitOps #LearningJourney
To view or add a comment, sign in
-
Explore related topics
- Kubernetes Deployment Skills for DevOps Engineers
- Mastering Kubernetes for On-Premises IT Teams
- Simplifying Kubernetes Deployment for Developers
- How to Troubleshoot KUBERNETES Issues
- Kubernetes Cluster Setup for Development Teams
- Essential Kubernetes Skills for Job Seekers
- Best Practices for Preparing Kubernetes Pods
- How to Streamline Kubernetes Cluster Setup
- How to Debug Code in Kubernetes Pods
- Kubernetes Implementation Guide for IT Professionals
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development