Stark & Wayne

tricks articles

Ever wanted to tweak the Kubernetes CLI, but don't know someone on one of the core SIGs? This guide will show you how to use the multi-call dispatch of `kubectl` to write your own helper commands!…

Posted by:James Hunt

Read More →

Are you tired of copying and pasting those ever-changing Pod names around? You can avoid that by extracting data with JSON Path!…

Posted by:James Hunt

Read More →

Sometimes life gives you lemons. And sometimes, a managed K8s provider gives you a full Kubeconfig. Why not merge them all together? Here's how.…

Posted by:James Hunt

Read More →

It's way too easy to drown in the ocean of objects that is a busy Kubernetes cluster. With this trick, you'll be able to find (and change!) precisely what you want to, when you want to.…

Posted by:James Hunt

Read More →

Logs are a great way of troubleshooting; they can provide a wealth of insight into the inner workings of a process. But what happens when pods crash?…

Posted by:James Hunt

Read More →

Logs are the lifeblood of a good diagnostic session. Too few of them and you have no idea what's going wrong. Too many, and you can't see the problem for the errors. Join James in this Kubectl trick as we take a look at Pod log retrieval!…

Posted by:James Hunt

Read More →

With RBAC, there are times, you'll wonder precisely which permissions you, or a service account you use, have been granted – that's when you should reach for `kubectl auth can-i`.…

Posted by:James Hunt

Read More →

Do you use Alpine Linux images? Ubuntu? What versions of MySQL are you currently running (and where)? We can answer these questions and more with custom output formats for kubectl!…

Posted by:James Hunt

Read More →

Keeping all that Kubernetes syntax straight can be daunting. Is that property a string or can it be a number? Does that collection get set as a map or a list? Who knows? Kubernetes knows.…

Posted by:James Hunt

Read More →