Salt Air 37 – Command and Control Kubernetes and Docker with SaltStack

August 2, 2019 - Thomas Hatch

Automated management of a Kubernetes cluster running on 12 Raspberry Pis.

Gareth Greenaway, SaltStack senior software engineer, joins me on this Salt Air episode for a SaltStack demo on automated management of a Kubernetes cluster running on 12 Raspberry Pis.

Watch this episode of Salt Air to see Gareth demonstrate SaltStack event-driven command and control of a Kubernetes and Docker environment running on 12 Raspberry Pi 3 nodes with SD cards, a simple network switch, and an LED light board to visually show activity in the cluster.

SaltStack intelligent automation is unique in providing event-driven orchestration, management, and security of any infrastructure at scale, from Kubernetes to network devices or any public cloud.

To learn more about SaltStack intelligent automation for the management and security of Kubernetes make sure to attend the Container Journal Virtual Summit titled, “Exploring Uncharted Waters – Understanding the Kubernetes Ecosystem,” on Thursday, August 8, 2019 at 10:00AM ET. Gareth will be speaking alongside Moe Anderson, SaltStack VP of engineering, about using SaltStack for command and control of a Kubernetes infrastructure.

“Hello and welcome to another episode of salt air. Today, I’ve got Gareth Greenaway with me again as a follow on. A little while ago we went through and looked at what some of the kubernetes integrations are with SaltStack and some of the things that you can do by taking information from SaltStack and then activating it inside the reactor. So, I’ve got Gareth here today who’s going to actually give us a SaltStack demo so what’s it gonna look like Gareth?” – Thomas Hatch

“Hi Tom, so we are going to look at kubernetes cluster that I built out of a series of raspberry pods and they’re being orchestrated by SaltStack. Before we jump into how Salt is using it, I thought we just take a look at some kind of precursors with kubernetes commands just to put in perspective of the how Salt is interacting with it. So this is my kubernetes master, appropriately named kubernetes master one, and I have some kubernetes nodes connected to it, so you can see I have nine minions and they’re all named appropriately kubernetes minion. They’re sitting or hanging out so kubernetes deployment not doing anything is kind of boring so I thought we’d run just a basic nginx container that I built. We’re going to tell it we’re going to give it the name for the deployments, so here I’m running the the cube CTL commands I’m just giving it the name my my nginx it’s only the image to use so this is just a standard basic simple nginx docker continue and I’m telling it I wanted to use ten replicas. It’s going to tell me it created. Then if I run another kubernetes commands, you’ll see there is a number of kubernetes docker containers running. They’re all running the image that I ran and they’re ready to go. If I give it the the wide output, we can get some more information about them, so we can see what what minions they’re running on. So they’re too spread out quite a bit so that’s the pods so then if we switch over to for Saltstack…” – Gareth Greenaway

SaltStack event-driven automation delivers continuous compliance through policy definition, real-time infrastructure scanning, and automated issue and vulnerability remediation. Check out SaltStack SecOps for automated IT security remediation at scale. In an era where there’s increasing talk about security orchestration, automation and response, this is a real-world way to gain traction for security within your operations teams–bringing security to the equation in network automation. Watch the SaltStack demo below!

Watch Salt Air on: YouTube

Listen to Salt Air on: SoundCloud | Spotify | iTunes