<p>I created a cluster on an Ubuntu server using this command:</p>
<pre><code>&gt; kubeadm init --cri-socket /var/run/dockershim.sock --control-plane-endpoint servername.local --apiserver-cert-extra-sans servername.local
</code></pre>
<p>I added Calico like this:</p>
<pre><code>&gt; curl https://docs.projectcalico.org/manifests/calico.yaml -o calico.yaml
&gt; kubectl apply -f calico.yaml
</code></pre>
<p>The Calico pod prints errors:</p>
<pre><code>&gt; kubectl --namespace kube-system logs calico-node-2cg7x
2021-01-05 16:34:46.846 [INFO][8] startup/startup.go 379: Early log level set to info
2021-01-05 16:34:46.846 [INFO][8] startup/startup.go 395: Using NODENAME environment for node name
2021-01-05 16:34:46.846 [INFO][8] startup/startup.go 407: Determined node name: servername
2021-01-05 16:34:46.847 [INFO][8] startup/startup.go 439: Checking datastore connection
2021-01-05 16:34:46.853 [INFO][8] startup/startup.go 454: Hit error connecting to datastore - retry error=Get &quot;https://10.96.0.1:443/api/v1/nodes/foo&quot;: dial tcp 10.96.0.1:443: connect: connection refused
2021-01-05 16:34:47.859 [INFO][8] startup/startup.go 454: Hit error connecting to datastore - retry error=Get &quot;https://10.96.0.1:443/api/v1/nodes/foo&quot;: dial tcp 10.96.0.1:443: connect: connection refused
2021-01-05 16:34:48.866 [INFO][8] startup/startup.go 454: Hit error connecting to datastore - retry error=Get &quot;https://10.96.0.1:443/api/v1/nodes/foo&quot;: dial tcp 10.96.0.1:443: connect: connection refused
2021-01-05 16:34:49.872 [INFO][8] startup/startup.go 454: Hit error connecting to datastore - retry error=Get &quot;https://10.96.0.1:443/api/v1/nodes/foo&quot;: dial tcp 10.96.0.1:443: connect: connection refused
2021-01-05 16:34:50.878 [INFO][8] startup/startup.go 454: Hit error connecting to datastore - retry error=Get &quot;https://10.96.0.1:443/api/v1/nodes/foo&quot;: dial tcp 10.96.0.1:443: connect: connection refused
2021-01-05 16:34:51.884 [INFO][8] startup/startup.go 454: Hit error connecting to datastore - retry error=Get &quot;https://10.96.0.1:443/api/v1/nodes/foo&quot;: dial tcp 10.96.0.1:443: connect: connection refused
2021-01-05 16:34:52.890 [INFO][8] startup/startup.go 454: Hit error connecting to datastore - retry error=Get &quot;https://10.96.0.1:443/api/v1/nodes/foo&quot;: dial tcp 10.96.0.1:443: connect: connection refused
2021-01-05 16:34:53.896 [INFO][8] startup/startup.go 454: Hit error connecting to datastore - retry error=Get &quot;https://10.96.0.1:443/api/v1/nodes/foo&quot;: dial tcp 10.96.0.1:443: connect: connection refused
</code></pre>
<p>I don't know what <code>10.96.0.1</code> is. It doesn't have any ports open:</p>
<pre><code>&gt; ping 10.96.0.1 -c 1
PING 10.96.0.1 (10.96.0.1) 56(84) bytes of data.
64 bytes from 10.96.0.1: icmp_seq=1 ttl=248 time=5.62 ms

--- 10.96.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 5.621/5.621/5.621/0.000 ms

&gt; nmap 10.96.0.1

Starting Nmap 7.60 ( https://nmap.org ) at 2021-01-05 17:37 CET
Nmap scan report for 10.96.0.1
Host is up (0.018s latency).
All 1000 scanned ports on 10.96.0.1 are closed

Nmap done: 1 IP address (1 host up) scanned in 1.62 seconds
</code></pre>
<p>The pod actually has IP <code>192.168.1.19</code>.</p>
<p>What am I doing wrong?</p>

<p>I had the same issue, in my case adding <code>--apiserver-advertise-address=&lt;server-address&gt;</code> parameter was the solution.</p>
