Posts by: James Hunt

Silly Kubectl Trick #11 – Getting Into Containers

The tenants of immutable infrastructure strongly discourage accessing containers. For day-to-day operation and deployment activities, that’s a sage bit of wisdom. When things start breaking, however, you’ll need to get in and take a look around. Kubernetes gives us two ways of doing this: attach and exec. When you run kubectl exec, you are creating

James Hunt Profile Image

Posted by:
James Hunt

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

Ahoy, There! This is just one blog post in an ongoing series about fun things you can do with the Kubernetes CLI, kubectl. We have a whole bunch of these over on our Silly Kubectl Tricks page. Also don’t forget to checkout out the video series on YouTube! If there’s one thing that Kubernetes makes

James Hunt Profile Image

Posted by:
James Hunt

Read More ➝
Using Kubernetes ConfigMaps As Code

Photo by Ryan Moulton on Unsplash A ConfigMap is a set of named bits of data. They allow Kubernetes operators to supply additional runtime configuration to the images they are spinning. They can be the source of environment variables. They can even be the source of files on-disk. Consider the nginx image on Docker Hub.

James Hunt Profile Image

Posted by:
James Hunt

Read More ➝
Managing Your k8s Cluster via DaemonSets

This one goes out to all the cluster operators. It really isn’t fair. All those application folks get to play with cool stuff like automatic traffic routing based on label matches, process resurrection, and more. All services provided by the clusters we run. We’re still on the hook for figuring out how to spin those

James Hunt Profile Image

Posted by:
James Hunt

Read More ➝
Protecting Yourself with Pod Security Policies

I listen to a lot of folks talk about their Kubernetes strategy as a means of apportioning a finite, limited resource (compute) among a wide and varied set of people, usually application developers and operations nerds, with an eye toward isolation. I have bad news for you. Kubernetes isn’t about isolation, not in the security

James Hunt Profile Image

Posted by:
James Hunt

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

Ahoy, There! This is just one blog post in an ongoing series about fun things you can do with the Kubernetes CLI, kubectl. We have a whole bunch of these over on our Silly Kubectl Tricks page. Also don’t forget to checkout out the video series on YouTube! Eventually, you’ll write a super handy script

James Hunt Profile Image

Posted by:
James Hunt

Read More ➝
Deployments, StatefulSets, and DaemonSets: A Field Guide

At the heart of any Kubernetes deployment strategy lies The Pod. The workhorse of distributed container solutions, the Kubernetes Pod glues together a bunch of containers to a single networking stack and process namespace. Pod processes can communicate with one another over loopback (127.0.0.1), and signal each other using POSIX signal(7) mechanics. Strange then, that

James Hunt Profile Image

Posted by:
James Hunt

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

Ahoy, There! This is just one blog post in an ongoing series about fun things you can do with the Kubernetes CLI, kubectl. We have a whole bunch of these over on our Silly Kubectl Tricks page. Also don’t forget to checkout out the video series on YouTube! kubectl can pull a lot of data

James Hunt Profile Image

Posted by:
James Hunt

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

Ahoy, There! This is just one blog post in an ongoing series about fun things you can do with the Kubernetes CLI, kubectl. We have a whole bunch of these over on our Silly Kubectl Tricks page. Also don’t forget to checkout out the video series on YouTube! Once you start managing more than one

James Hunt Profile Image

Posted by:
James Hunt

Read More ➝