Skip to content

Romana DNS

Juergen Brendel edited this page Nov 16, 2017 · 1 revision

Romana DNS

Romana DNS adds DNS support for Romana IPs. It is drop in replacement for kube-dns.

Install Steps

On Master node of kubernetes cluster

  • Make a note on number of replicas for kube-dns using following command:
echo `kubectl get deploy -n kube-system kube-dns -o jsonpath="{.spec.replicas}"`
  • Now set replicas for kube-dns to zero using following command:
kubectl scale deploy -n kube-system kube-dns --replicas=0
  • Wait till kube-dns replicas are zero (around a minute or so)

On All nodes i.e master and compute nodes of the kubernetes cluster

  • Remove earlier docker images and replace it romana one using commands below:
docker rmi
docker pull pani/romanadns
docker tag pani/romanadns:latest
  • Now return back to master node for further commands

On Master node of kubernetes cluster

  • Now assuming you had 2 replicas before, from first step above, we restore the replica count for kube-dns as follows:
kubectl scale deploy -n kube-system kube-dns --replicas=2
  • Wait for a minute or so for the pod to come up and we have romanaDNS up and running.


  • Run dig to see if dns is working properly using command:
dig @ +short romana.kube-system.svc.cluster.local
  • Download this sample nginx yaml file and then use following command to create an nginx service with RomanaIP in it:
kubectl create -f nginx.yml
  • This should create and load nginx service with RomanaIP, which should reflect in the dig result below:
dig @ +short nginx.default.svc.cluster.local

Sample Results

$ dig @ +short romana.kube-system.svc.cluster.local
$ dig @ +short nginx.default.svc.cluster.local
You can’t perform that action at this time.