<p>Whether prompt, What linked in kubernetes this message:</p>

<pre><code>The Service "skudns" is invalid:spec.clusterIP: invalid value '': the provided range does not match the current range
</code></pre>

<p>At that that <code>DNS_SERVICE_IP = 10.3.0.10</code>, and <code>SERVICE_IP_RANGE = 10.3.0.0/16</code></p>

<p>My ip-address:</p>

<pre><code>K8S_SERVICE_IP: 10.3.0.1
MASTER_HOST: 192.168.0.139
ETCD_ENDPOINT=ETCD_CLUSTER=http://192.169.0.139:2379,http://192.168.0.107:2379
POD_NETWORK: 10.2.0.0/16
SERVICE_IP_RANGE: 10.3.0.0/24
DNS_SERVICE_IP: 10.3.0.10
ADVERTISE_IP: 192.168.0.139
</code></pre>

<p><code>/16</code> <a href="http://doc.m0n0.ch/quickstartpc/intro-CIDR.html" rel="nofollow noreferrer">means a subnet mask</a> of 255.255.0.0 (instead of 255.255.255.0 with <code>/24</code>)</p>

<p>The error message comes from <a href="https://github.com/kubernetes/kubernetes/blob/b9cfab87e33ea649bdd13a1bd243c502d76e5d22/pkg/registry/service/ipallocator/allocator_test.go#L196-L198" rel="nofollow noreferrer"><code>pkg/registry/service/ipallocator/allocator_test.go#L196-L198</code></a></p>

<pre class="lang-go prettyprint-override"><code>if !network.IP.Equal(cidr.IP) || network.Mask.String() != cidr.Mask.String() {
    t.Fatalf("mismatched networks: %s : %s", network, cidr)
}
</code></pre>

<p>It might be possible the host network mask (seen in <code>ipconfig</code> if the host is Windows, or <a href="https://raw.githubusercontent.com/Juniper/contrail-kubernetes/vrouter-manifest/cluster/provision_minion.sh" rel="nofollow noreferrer"><code>ifconfig</code> as in this script</a>) might be different from the cidr mask used by kubernetes.<br>
Try with <code>/24</code> just for testing.<br>
See also <a href="https://github.com/tdeheurles/homecores/issues/5#issue-109825651" rel="nofollow noreferrer">issue 5 (Network comportment)</a></p>

<p>In the end, the <a href="https://stackoverflow.com/users/3197412/batazor">OP batazor</a> confirms <a href="https://stackoverflow.com/questions/34173253/kubernetes-spec-clusterip-invalid-value/34173688#comment56136110_34173688">in the comments</a> an issue on Kubernetes side:</p>

<blockquote>
  <p>kubernetes updated from version 1.0.3 to 1.0.6 and got <code>docker0</code> mask to 255.255.255.0 This is some sort of magic.</p>
</blockquote>
