How to run consul on kubernetes

by Vikrant
September 11, 2018

In this article, I am sharing the steps to run the consul on minikube Kubernetes. For this exercise I am using the official conul helm chart for the deployment. I want to deploy 3 node consul server and a client.

How to make haproxy template file to use the services from both DCs?

by Vikrant
September 11, 2018

This post is in contiuntion from the previous post, in this article I will be demonstrating the dynamic update of haproxy file with services located across difference DCs. In one of my earlier post I have created haproxy image taking reference from a blog. I have started the haproxy container using the image. After starting the image, I modified the template file inside the container to look like below which is from one of the awesome course [1] which I attended on pluralsite.

How to use consul DNS in kubernetes

by Vikrant
September 11, 2018

In the previous article, we have seen the installation of consul on Kubernetes using helm chart. In this article, I am going to do the modification in coredns of minikube setup to add the stub zone so that DNS queries related to consul can go to consul DNS.

How to run multi datacenter setup using consul?

by Vikrant
September 10, 2018

In the previous articles, we have discussed about the consul deployment and consul templates. In this article, I am going to use four docker machines to create two DCs.

How to use consul template to configure haproxy dynamically?

by Vikrant
September 9, 2018

In previous article, I have provided the basic setup information related to consul. In this article, I am going to show the practical implementation of consul templates. Many things covered in this article can be taken care in more automatic way but I was happy to do them manually for understanding each step.

How to run consul in docker

by Vikrant
September 8, 2018

While working with kubernetes, I was intrigued by the service discovery topic. I read about consul in past but never got the chance to make my hands dirty with it. Today, I spend sometime to run the consul in docker environment. I used docker-machine on MAC with virtual box to quicly start a machine with docker.

How DNS discovery works in kubernetes

by Vikrant
September 5, 2018

In this article, I share the information related to DNS which I collected from official kubernetes documentation. All the examples are taken from the official kubernetes guide. DNS provides the service discovery functionality in kubernetes. minikube by default start dns server for you in kube-system namespace.

Understand the usage of python classmethods

by Vikrant
August 29, 2018

While trying to understand the difference between staticmethod and classmethod I landed on this blog post. I was bit confused after reading the comment “classmethod can be helpful in case of inheritence instead of having one staticmethod calling another staticmethod”.