@Mike Zupan · Mar 20, 2016 · 11 min read
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 over how its spun up.
I used terraform to pre-create a VPC structure that Kops should be able to use …
Read More →
@Mike Zupan · Nov 6, 2015 · 1 min read
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 example I would have a cron on my salt master server that looked like This
0 * * * * …
Read More →
@Mike Zupan · Oct 26, 2015 · 1 min read
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': 'application/strategic-merge-patch+json'} payload = '{"spec":{"replicas":%s}}' % size r = …
Read More →
@Mike Zupan · Oct 26, 2015 · 9 min read
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 it was not supported officially by anyone in the organization. The config management to bootstrap …
Read More →
@Mike Zupan · Feb 4, 2015 · 1 min read
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 tired of having to maintain 5 different versions of a haproxy config.
So our basic formula layout looks …
Read More →
@Mike Zupan · Dec 16, 2014 · 1 min read
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
/etc/monit.conf With the following contents
set daemon 5 with start delay 5 set logfile /var/log/monit.log …
Read More →
@Mike Zupan · Jul 15, 2014 · 1 min read
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 libguestfs: error: /usr/bin/supermin-helper exited with error status 1. To see full error messages you may …
Read More →
@Mike Zupan · Jul 7, 2014 · 4 min read
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 use that created interface or portgroup. Then there are almost no blogs that really say, when you …
Read More →
@Mike Zupan · May 20, 2014 · 2 min read
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 mount the drive. This is solved by a tool call mandos. This is a client/server tool that the mandos …
Read More →
@Mike Zupan · Nov 8, 2013 · 1 min read
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 /etc/shadow | grep mike That will give us something that looks like …
Read More →