Code to Kubernetes in 15 Minutes
Aug 19, 2018
As you may recall, a couple of on-call’s ago I started crafting a Kubernetes cluster using Vagrant and Ansible. Well I have decided to upload my code to GitHub!
Download You can get the code from here: https://github.com/xanmanning/vagrant-kubernetes-cluster
Here’s what gets deployed! An NFS server for Persistent Volumes 3 Kubernetes Nodes (1 master, 2 workers). This can be increased in Vagrant. Demonstration In the below demo I go from sourcecode, to a 3 node cluster + storage in 15 minutes.
Weekend Deployment, Upskilling
Jun 23, 2018
I’ve got a weekend to myself, it’s not uncommon, but this weekend the wife has gone away to watch Foo Fighters. I’m not jealous, I’m not fond of crowds and I don’t like travelling to London (or down South in general). When I win the lottery and can afford to have private gigs for my family then all will be cool.
So yes, on a weekend when I am on my own I can be a bit of a sad nut, especially on weekends like this one when I will be starting a week of on-call for work.
Git for Non-Developers
May 06, 2018
I have been thinking about this for quite a while, particularly as I am in the middle of contributing to a project at work to combine our multiple knowledgebases into a single repository of runbooks.
We’ve chosen to resolve our fractured information repositories into a central git repository. Each runbook is written in Markdown.
So why use Git (on GitHub) and Markdown? Runbooks live close to the code, eventually commonly used runbooks can become Ansible playbooks.
First post of 2018
May 03, 2018
I am still alive, honest! I’ve just been super busy being a geek. I’m still trying to continue my AWS education but this has been put on hold for some Azure training. I’m slowly becoming quite cloud agnostic and trying to be smart with it.
So here’s a rundown of what I have been doing over the past 6 months…
Refining my Ansible skills (mainly for work). Playing with Terraform (personally more than professionally).
Auto Shutdown AWS EC2s with Lambda, CloudWatch (and Terraform)
Nov 27, 2017
Today we are looking at how to automatically shut down EC2 instances at the end of the day automatically using a combination of Lambda and CloudWatch.
TL;DR I’ve written a ‘stop EC2’ Lambda function that is deployable with Terraform to get you started, I’ve not made a ‘start EC2’ Lambda function yet. Future improvements, I’d like to programmatically schedule instances using tags. Clone from: github.com/xanmanning/terraform-autostop
What we will end up with is a simple Lambda function that will search all of our regions and automatically send the stop-instances command to anything that is still running after 8:00pm.
Switched to Jekyll
Nov 26, 2017
As yoy may have noticed I’ve migrated my blog from Ghost to Jekyll. Please do not be alarmed! As I am not able to put significant time into keeping a server running nginx and Ghost up to date with security updates.
So why choose Jekyll? It’s still markdown, it can be pretty and the output is static HTML. I no longer have a node.js application and database to worry about, at the moment all I have is the nginx webserver to keep on top of which can be automatically updated.
UNIX-ing as a Linux Geek
Sep 23, 2017
So my background is mostly in GNU/Linux, I’ve ditched Windows long ago and I still dabble with Mac OS X (though an older version). Since February I have been doing a bit of work on IBM AIX systems, particularly with PowerHA (HACMP) clusters. I’m not going to pretend to be an expert but I have found using UNIX almost like speaking a strange dialect or creole. Everything is so similar and yet so very different.
Clean up old Docker images
Sep 16, 2017
Sorry for not posting in a while, I have been a bit busy. Here’s a quick tip.
The Problem Ideally when running in the cloud we want to be able to ditch our VMs when they misbehave rather than trying to fix them. Reincarnate, don’t resurrect.
For me, however, I am running a single VM (Digital Ocean Droplet) with Docker. I want to be able to recreate my droplet very quickly should things go wrong, but I don’t care much about 100% uptime on my personal server.
Best Practice for Mounting an LVM Logical Volume with /etc/fstab
May 29, 2017
If you’ve been using Linux for a bit you will be familiar with the file systems table (fstab(5): /etc/fstab). You will also be fairly familiar with the contents of this file and it’s structure:
<device> <mount-point> <filesystem-type> <options> <dump> <pass> So a typical entry may possibly look like the following:
/dev/sda1 / ext4 defaults 0 0 This would mount /dev/sda1, the device file for the first partition on the first disk as the root (/) on your Linux system.
Azure, an AWS guy dipping his toes.
May 22, 2017
I am not going to lie, I am a big fan of AWS. I have been using AWS on and off for nearly 2 years now. I’ve done the training for both the AWS Solutions Architect Associate and SysOps Associate (although not got a certification yet). Shout out to acloud.guru.
Whilst there are no shortage of AWS jobs out there, depending on your industry it potentially pays to become cloud agnostic - having a finger in each of the cloud provider’s pies (AWS, Azure, DigitalOcean, Google Cloud).