The old blog
Posts
Notes on iPhone development, Linux, Django and infrastructure, written between 2008 and 2016.
-
Kubernetes - Kops - GitLab
This will go over how to get GitLab up and running using the following toolchain AWS Terraform Kops Kops is a really nice tool to help easily spin up a Kubernetes cluster in AWS that allows you to have a lot of control …
-
AWS Lambda RDS backup job
I just started playing around a lot with different parts of AWS. Before whenever I wanted to run a one off job like a RDS snapshot, I would put a cron job on a server I knew would never have more then one of. So for …
-
kubernetes api scale replication controller
This isn’t well found in the Kubernetes docs. If you want to scale up a replication controller, you can run the following. size = 2 master_ip = '10.100.0.2' rc_name = 'blog' headers = {'Content-Type': …
-
kubernetes deployment pipeline
Overview A bit of background. Our development process suffered from a lot of tech rot. There was a base vagrant image that spun up infrastructure that sort of matched our development environment in AWS. The big issue was …
-
Dynamic haproxy config in SaltStack
If you are anything like me, you like to over utilize haproxy. Salt stack has a nice feature for files that allow you to add to them in different state files. Say you want to have a stock haproxy config but sick and …
-
Monitor Salt with Monit
Sometimes salt has the tendency to crash. So we can use monit to fix that problem This assumes you already have the EPEL repo installed yum install monit Now with monit installed we can edit the following config …
-
guestfish problems with virt-filesystems
I was trying to use guestfish to increase a qcow2 partition without booting live and fdisking and all that mess. So I tried to run it and was getting # virt-filesystems --long --parts --blkdevs -h -a disk.qcow2 …
-
Openvswitch / KVM / Libvirt / Ubuntu / VLANs the right way
There are a lot of old blog posts out there to getting KVM guests to use different vlans via openvswitch. There are a lot that tell you to create fake bridges or create the ports via ovs-vsctrl and add tell libvirt to …
-
Get Mandos working in Ubuntu
I’ve been doing a lot of playing around with full dis encryption. Now there’s one big problem when you do full disk encryption is when the server reboots you are left at a prompt to enter your password to …
-
Verify user's password on the command line
If there’s any chance you need to verify a user’s password on the command line and you are root you can use openssl with the info from /etc/shadow. So first we want to grab the entry from /etc/shadow cat …