Kubernetes on vagrant
The context:
After being really addicted to Docker Compose, I finally ran I to a critical bug.....DNS while using Docker compose. What's happening is my Hendrix project instance have DNS corruption causing my services to crash there crashing the containers.
What's this post about?
Well Docker compose with dependencies currently doesn't scale multiple hosts in a Swarm cluster so I am left with only one option, take the Kubernetes pill without saying a word. Kubernetes is a relatively more established platform but it's got a long way to go to be developed friendly. Setting up a Kubernetes cluster in GCP is pretty straight forward however in the interest of ease of troubleshooting and finances I need to be able to create one locally.
Vagrant to rescue
I am not sure if there is a working Kubernetes Vagrant deployment out there but I couldn't find one so I wrote my own as a part of the Hendrix project. Luckily I found a great tutorial for deployment of Kubernetes that actually works. (Most other ones I have tried break at some phase)
Where is the code?
make sure to checkout all contents of that directory since they are needed to prepare the nodes upon deployment.
How to run?
Just cd to the directory and say vagrant up that's it.
Comments
Post a Comment