Follow the white rabbit - Monitoring the network of a single process

Intro I was recently challenged with the single task of being able to monitor all connectivity in and out of a process. At first thought this is actually fairly easy. “I’ll just use tcpdump” I thought to myself. That single sentence lead me down a rabbit hole of processes, namespaces and the linux kernel. I thought that I would share my experiences of how to do this. Why do this at all?...

June 23, 2022 · 9 min · codecowboy.io

Mermaid and Hugo - a tale of submodules and subtrees

Intro I have decided to investigate the difference and strengths and weaknesses of using subtrees versus submodules in git. Both have pros and cons, and in this post I explore them both. What prompted this? Recently I decided to update my hugo instance to use mermaid. Mermaid is a library that allows you to embed diagrams in markdown. This means that I can create diagrams simply by using markdown. My hugo theme, was installed as a git submodule....

April 3, 2022 · 11 min · codecowboy.io

microk8s - small kubernetes - part 3

Intro I recently sat down and thought to myself “I wonder how the current market of mini or micro kubernetes distributions is going”. I’ve been using minikube for a bit and thought to myself it was about time to start using a few other distributions. So I have been experimenting with different micro or mini distributions. This post is about microk8s. microk8s microk8s is an open source project that you can find here: [https://microk8s....

March 20, 2022 · 16 min · codecowboy.io

k3s - small kubernetes - part 2

Intro I recently sat down and thought to myself “I wonder how the current market of mini or micro kubernetes distributions is going”. I’ve been using minikube for a bit and thought to myself it was about time to start using a few other distributions. So I have been experimenting with different micro or mini distributions. This post is about k3s. k3s k3s is an open source project that you can find here: [https://k3s....

March 5, 2022 · 9 min · codecowboy.io

k0s - small kubernetes - part 1

Intro I recently sat down and thought to myself “I wonder how the current market of mini or micro kubernetes distributions is going”. I’ve been using minikube for a bit and thought to myself it was about time to start using a few other distributions. So I have been experimenting with different micro or mini distributions. This post is about k0s. k0s k0s is an open source project that you can find here: https://k0sproject....

February 19, 2022 · 8 min · codecowboy.io

Libp2p experiments with NGINX Unit

Intro I recently picked up libp2p again. It’s a project that I’ve been checking in on for a number of years, and decided to check it again recently. The difference is that this time I had a use for it! You can find out more about libp2p here What is it? Libp2p is a peer to peer library for a multitude of languages. It provides a modular networking stack that you can use in your projects....

December 30, 2021 · 17 min · codecowboy.io

SQL Server on Kubernetes - Part 2

Intro So in my last post I showed how you could create databases on Kubernetes. There are many reasons to do this. Equally, there are reasons not to do this, but for highly distributed deployments it does make sense. This post is going to focus on the storage components of running a database on Kubernetes. Why do I need persistent storage Persistent storage as the name implies allows you to store your data between container restarts....

December 1, 2021 · 5 min · codecowboy.io

SQL Server on Kubernetes - Part 1

Intro Recently, I’ve been working with a customer who wants to provide databases on their Kubernetes cluster. Ever since Microsoft’s SQL Server was released on Linux some years ago, I’ve been fascinated with it. I decided to give it a go recently on Kubernetes, and get it all working. This is part one, where I deploy SQL server without persistent storage. In part two, I will discuss using persistent storage....

November 1, 2021 · 6 min · codecowboy.io

Media

2021 Consider telemetry when rearchitecting applications Consider telemetry when rearchitecting applications 2020 Devops Needs Collaboration and a Safe Place for Success Devops Needs Collaboration and a Safe Place for Success

September 29, 2021 · 1 min · codecowboy.io

Presentations

2021 Hashicorp talks: Using Consul-Terraform-Sync to deploy on traditional infrastructure Hashicorp talks: Using Consul-Terraform-Sync to deploy on traditional infrastructure Apis and the Modern Application Landscape [API’s and the Modern Application Landscape] (https://app.livestorm.co/p/2cff90a5-b478-4851-9b47-7a42d1066de5) Devsecops: Automate and Orchestrate Security as Part of your CI/CD Pipeline [Devsecops: Automate and Orchestrate Security as Part of your CI/CD Pipeline] (https://www.brighttalk.com/webcast/14253/365943/devsecops-automate-and-orchestrate-security-as-part-of-your-ci-cd-pipeline) OAuth and API’s (with Okta) [OAuth and API’s] (https://oauthapipowerhour2.splashthat.com/) 2020 Why statically compiling and using SCRATCH are important (Kill the Cruft!...

September 29, 2021 · 1 min · codecowboy.io