title: MetalLB cannot connect to Kubernetes API
body: <p>I installed MetalLB to be able to expose my services via an IP my network.
  After the installation I tried a simple hello-world according:
  <a href="https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/" rel="nofollow noreferrer">https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/</a></p>
  
  <p>I noticed, that the external IP is always in state </p>
  
  <p>In the logs of the controller pod I got following error message:</p>
  
  <pre><code>{"caller":"reflector.go:205","level":"error","msg":"go.universe.tf/metallb/internal/k8s/k8s.go:231: Failed to list *v1.Service: Get https://10.96.0.1:443/api/v1/services?limit=500\u0026resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout","ts":"2019-04-23T12:16:31.3694Z"}
  
  {"caller":"reflector.go:205","level":"error","msg":"go.universe.tf/metallb/internal/k8s/k8s.go:237: Failed to list *v1.ConfigMap: Get https://10.96.0.1:443/api/v1/namespaces/metallb-system/configmaps?fieldSelector=metadata.name%3Dconfig\u0026limit=500\u0026resourceVersion=0: dial tcp 10.96.0.1:443: i/o timeout","ts":"2019-04-23T12:17:01.779341Z"}
  </code></pre>
  
  <p>I installed Kubernetes as usual and initialized with the following command:
   <code>sudo kubeadm init --pod-network-cidr=10.21.8.128/25 --apiserver-advertise-address=10.21.8.1</code></p>
  
  <p>In the <code>"kube-controller-manager.yaml"</code> I changed the size of the <code>"node-cidr-mask"</code> since the standard value is <code>"/24"</code> and my cluster size is <code>"/25"</code>:
  <code>--node-cidr-mask-size=26</code></p>
  
  <p>I also installed flannel and Kubernetes Dashboard. Everything works fine!</p>
  
  <p>I installed then MetalLB according:
  <a href="https://metallb.universe.tf/tutorial/layer2/" rel="nofollow noreferrer">https://metallb.universe.tf/tutorial/layer2/</a></p>
  
  <p>And configured MetalLB with this config:</p>
  
  <pre><code>*apiVersion: v1
  kind: ConfigMap
  metadata:
    namespace: metallb-system
    name: config
  data:
    config: |
      address-pools:
      - name: my-ip-space
        protocol: layer2
        addresses:
        - 10.21.8.129-10.21.8.254*
  </code></pre>
  
  <p>Did I missed something?</p>