hakk

software development, devops, and other drivel
Tree lined path

DevOps Learning

Deploy WordPress on KataCoda Kubernetes

A step by step guide to deploying WordPress on Kubernetes provided by the KataCoda website. Please note that this shouldn’t be used for a production deployment and should only be used for learning and/or practice. Create a Secret for the MySQL Password The first step is to create a secret that can be used to store the MySQL database password. Later in the deployment this will be used in creating the MySQL database pod and then used by the WordPress pod to connect to the database. Read more...

Vagrant Ubuntu with Docker install

Creating an Ubuntu VirtualBox and installing Docker. Vagrantfile Vagrant.configure("2") do |config| config.vm.box = "ubuntu/bionic64" config.vm.define "docker-1" do |node| node.vm.hostname = "docker-1" config.vm.box_check_update = false config.vm.network "public_network" config.vm.provider "virtualbox" do |vb| vb.name = "docker-1" vb.memory = "2048" vb.cpus = "2" end node.vm.provision "install-docker", type: "shell", :path => "ubuntu/install-docker-2.sh" end end install-docker-2.sh cd /tmp curl -fsSL https://get.docker.com -o get-docker.sh sh /tmp/get-docker.sh vagrant up Wait for the virtual machines to get created and started. Read more...

Building a VirtualBox ISO with Packer

I wanted to try building my own Vagrant base box, I decided to use one of the chef bento templates for ease. It was moving along nicely, downloaded the ISO, verified the checksum and suddenly this error appears. VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine packer Not quite sure where to start I decided to do a quick Google, read some posts about VirtualBox modules. I was quite sure that wasn’t my issue. Read more...

VBoxManage - Manage VirtualBox VMs From The Command Line

VirtualBox is a fantastic tool, previously I had been using it from the GUI. However, recently I started running it remotely on a server and using VNC to connect and manage the virtual machines. I decided that I would rather use the command line for this task as well. However, remembering all the commands is proving difficult. So I’m going to create a list and hopefully help myself and others along the way. Read more...