error deploying dns in kubernetes

6/5/2016

when I run sudo ./deployAddons.sh under kubernetes/cluster/ubuntu I get the following:

replicationcontroller "kube-dns-v14" created
The Service "kube-dns" is invalid.
spec.clusterIP: Invalid value: "192.168.3.10": provided IP is not in the valid range

Where to set this?(which file) and what variable to set?

-- user1870400
kubernetes

1 Answer

6/5/2016

192.168.3.10 is the default IP used in the ubuntu deployment (defined here. You should override it by setting the DNS_SERVER_IP environment variable. It's value can be any unused value in the cluster IP range, but should match what the kubelets were started with (using the --cluster-dns flag). See the DNS readme for more detail.

-- Tim Allclair
Source: StackOverflow