Posts
2024
2020
The Controller Conundrum
tl;dr - Gave up writing a controller and got similar functionality with 6 lines of bash
Recently i began planning the split of auto scalling groups for a change we were planning to introduce, this involved the nodes having certain taints & labels so that the right workload gets placed on them.
So this involved two things one is a couple of AWS ASGs and spotinst, so i needed something which worked on all nodes
Terraformer Imports
I recently inherited an AWS account at my present employer which has a few VPC, managed Data Stores, a few stray instances & a couple of EKS cluters.
The Problem : No IaC
The Solution : terraform imports
Now this isnt new, here the thing was there was a lot of things to get rid off ( looking at you launchwizard7 security group ), so i needed to bring a certain part of the AWS cloud under terraform while ignoring the others. That would actually provide a definitive guideline as for me to mark resources to get rid of.
2018
How bootkube works
What is bootkube?
[bootkube][3] is a project in the kubernetes incubator, which allows you to self host the control-plane of kubernetes. Simple, isnt it?
What is self hosting?
The idea of self hosting is to run the kubernetes control-plane in kubernetes, leveraging kubernetes objects. That is, to run the api-server, controller-manager & the scheduler as kubernetes objects, which then enables you to manage kubernetes like any other application you run on kubernetes. What does this mean? You manage kubernetes components using your favorite tool
kubectl
.
2017
Running bootkube on OSX
I’d heard of bootkube and wanted to try it out, I also really wanted to run this locally on my MacBook. I didn’t want to run it on Virtual Box, this was when I remembered kubesolo which used the xhvye virtualization to stand up a kubernetes cluster on your MacBook. I then looked and found corectl, which allows you to run a coreos vm on xhyve. It took me a day or so to figure out how exactly I needed to bring up the cluster.
Bootkube
I have been trying out bootkube for a while now. It may be a beta, but I love the concept and how it works.
For those who have not heard about bootkube, its a tool which is used to bootstrap self-hosted clusters. Self-hosted essentially means running kubernetes as a objects on the kubernetes cluster ( I can hear people close their tabs ), its just kubernetes running on kubernetes. You can take a look at this video where Aaron Levy explains what self-hosted is and how you can benefit from it.
2016
Here we Go
Hello there, and welcome to my space. I’m hoping to drop a few pearls of wisdom here, but this is also a record of my misadventures and here’s hoping nobody repeats them!