Silly Kubectl Tricks

In the fall of 2019, we had a vision: to produce the worlds best video and blog series about the little micro-optimizations and fun tricks you can make the Kubernetes CLI do.

This is that series. Silly Kubectl Tricks

Watch the Videos!

Trick #1 – Explain Yourself, Kubernetes

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…

Trick #2 – Listing Images

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!

Trick #3 – What Do I Have Permissions For?

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

Trick #4 – Getting At Those Kubernetes Logs

Kubernetes has some fascinating ways of making our lives easier, of self-healing in the face of errors, crashes, and more, but sometimes, you just need to tail the log file.

Read the Blogs!

Trick #5 – Waiting For Kubernetes

Trick #1 – Explain Yourself, Kubernetes 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… Trick #2 – Listing Images Do you use Alpine Linux images? Ubuntu? What versions

Ashley Gerwitz Profile Image

Posted by:
Ashley Gerwitz

Read More ➝
Trick #6 – Label it to Enable it

Trick #1 – Explain Yourself, Kubernetes 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… Trick #2 – Listing Images Do you use Alpine Linux images? Ubuntu? What versions

Ashley Gerwitz Profile Image

Posted by:
Ashley Gerwitz

Read More ➝
Trick #7 – Merge All The KUBECONFIGs!

Trick #1 – Explain Yourself, Kubernetes 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… Trick #2 – Listing Images Do you use Alpine Linux images? Ubuntu? What versions

Ashley Gerwitz Profile Image

Posted by:
Ashley Gerwitz

Read More ➝
Trick #8 – Data Extraction with JSON Path

Trick #1 – Explain Yourself, Kubernetes 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… Trick #2 – Listing Images Do you use Alpine Linux images? Ubuntu? What versions

Ashley Gerwitz Profile Image

Posted by:
Ashley Gerwitz

Read More ➝
Trick #9 – Write Your Own Sub-Command

Trick #1 – Explain Yourself, Kubernetes 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… Trick #2 – Listing Images Do you use Alpine Linux images? Ubuntu? What versions

Ashley Gerwitz Profile Image

Posted by:
Ashley Gerwitz

Read More ➝
Silly Kubectl Trick #10 – Cleaning Up After Yourself

Trick #1 – Explain Yourself, Kubernetes 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… Trick #2 – Listing Images Do you use Alpine Linux images? Ubuntu? What versions

Ashley Gerwitz Profile Image

Posted by:
Ashley Gerwitz

Read More ➝
Silly Kubectl Trick #11 – Getting Into Containers

Trick #1 – Explain Yourself, Kubernetes 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… Trick #2 – Listing Images Do you use Alpine Linux images? Ubuntu? What versions

Ashley Gerwitz Profile Image

Posted by:
Ashley Gerwitz

Read More ➝

Get In On This!