What Actually Happens When You Type kubectl apply

📰 Medium · DevOps

Understand what happens when you run kubectl apply in Kubernetes, and how it affects your cluster's state

intermediate Published 23 May 2026
Action Steps
  1. Run kubectl apply -v=5 to observe the API requests made to the Kubernetes API server
  2. Configure the Kubernetes API server to log requests and responses for debugging purposes
  3. Test the reconciliation loop by creating a resource and then updating it using kubectl apply
  4. Apply a YAML configuration file using kubectl apply -f to see how the API server processes the request
  5. Use kubectl describe to inspect the resulting resources and verify their state
Who Needs to Know This

DevOps engineers and Kubernetes administrators can benefit from this knowledge to better manage and troubleshoot their clusters

Key Insight

💡 kubectl apply triggers a reconciliation loop that ensures the cluster's state matches the desired state defined in the YAML configuration

Share This
Ever wondered what happens when you run kubectl apply? Dive into Kubernetes internals and API writes!

Key Takeaways

Understand what happens when you run kubectl apply in Kubernetes, and how it affects your cluster's state

Full Article

Kubernetes Internals, API Writes, And Reconciliation Loops Continue reading on Medium »
Read full article → ← Back to Reads

Related Videos

How to Code with Distrobox on the Steam Deck
How to Code with Distrobox on the Steam Deck
Ian Wootten
Can You Code on a Steam Deck?
Can You Code on a Steam Deck?
Ian Wootten
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AI Daily
Containers on Amazon ECS with Mama J
Containers on Amazon ECS with Mama J
AWS Developers
How to Open QTR Files (QuickTime Movie)
How to Open QTR Files (QuickTime Movie)
File Extension Geeks
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Amazon Web Services