Techdox
kubernetes

Question Everything - Road to CKA

Diving into Kubernetes for the CKA made me realise how fast config drift happens when editing live resources. A DaemonSet lab sparked a deeper understanding of why GitOps matters and why a single source of truth is essential.
Nick Wilkinson 1 min read
Question Everything - Road to CKA
Photo by Growtika / Unsplash

The last few days I have been diving deep into learning Kubernetes for the CKA exam, at the moment I am doing the Kubernetes Fundamentals LFS258 course and I am making sure to go through it slow and really question why things are the way they are.

Working in this space I'm always checking my learnings with real world examples and knowing those real world usecases really help in my understanding of Kubernetes rather than following the lab steps blindly. For example, I deployed a DaemonSet via a manifest that the lab provided but in the next few steps it would get you to run a kubectl edit ds command to make a live update to the Daemon set that was running, but then it got me thinking. Didn't I just deploy this via a YAML file, isn't that now out of date and not the source of truth?

I guess the lab is just teaching you how you can go about editing things on the fly but this is why I am glad I am taking my time as it makes me realise how quickly in a production environment someones Kubernetes deployments could drift if people are making edits via the kubectl edit and then via the manifest which has now drifted.

This is a key reason why I am looking to become experianced in the Kubernetes space so I can become aware of these issues, no doubt in a actual well created setup this would be managed via GitOps which is the source of truth but this now gives reasons and answers to why GitOps etc. The source of truth is always important and with how complicated Kubernetes is this is ever more important and I have only looked at the surface.

Share
More from Techdox

Techdox

Discover Techdox: Your Fun and Informative Source for IT Goodness

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Techdox.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.